mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Scripts/Guards: Fix spell cast spam after killing npc_air_force_bots guards
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user