fix these possible SREs

This commit is contained in:
ineed bots 2023-11-26 16:33:48 -06:00
parent 41862fb341
commit 980faf9174

View File

@ -1451,7 +1451,7 @@ bot_chat_death_watch( killer, last_ks )
break;
case 60:
if ( isDefined( self.attackerData[killer.guid] ) && isDefined( self.attackerData[killer.guid].weapon ) )
if ( isDefined( self.attackerData ) && isDefined( self.attackerData[killer.guid] ) && isDefined( self.attackerData[killer.guid].weapon ) )
message = "Wow! Nice " + getBaseWeaponName( self.attackerData[killer.guid].weapon ) + " you got there, " + killer.name + "!";
break;
@ -2117,6 +2117,11 @@ bot_chat_follow_watch( state, player, time, d, e, f, g )
{
self endon( "disconnect" );
if ( !isDefined( player ) )
{
return;
}
switch ( state )
{
case "start":