Scripts/Guards: Fix spell cast spam after killing npc_air_force_bots guards

This commit is contained in:
jackpoz
2020-04-05 20:23:46 +02:00
parent cb41c8828f
commit 0844ad2ff0

View File

@@ -132,6 +132,10 @@ public:
if (!guard)
return;
// Keep the list of targets for later on when the guards will be alive
if (!guard->IsAlive())
return;
for (ObjectGuid guid : _toAttack)
{
Unit* target = ObjectAccessor::GetUnit(*me, guid);