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

(cherry picked from commit 0844ad2ff0)
This commit is contained in:
jackpoz
2020-04-05 20:23:46 +02:00
committed by Shauren
parent f1f8af9c5f
commit 95de1db5fc

View File

@@ -134,6 +134,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);