diff options
author | jackpoz <giacomopoz@gmail.com> | 2020-04-05 20:23:46 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-01-01 01:02:17 +0100 |
commit | 95de1db5fc80422787f4288e51ba8d22c21301b6 (patch) | |
tree | 47b45ce8a853cf81b6765186e117f330d413e484 | |
parent | f1f8af9c5fe3a7f2fc01edaa6cbd88886d2bd31e (diff) |
Scripts/Guards: Fix spell cast spam after killing npc_air_force_bots guards
(cherry picked from commit 0844ad2ff00fef9fe90633eea3df8afc8a58e6d1)
-rw-r--r-- | src/server/scripts/World/npcs_special.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/scripts/World/npcs_special.cpp b/src/server/scripts/World/npcs_special.cpp index 8ec777e74d1..7dc0516d84a 100644 --- a/src/server/scripts/World/npcs_special.cpp +++ b/src/server/scripts/World/npcs_special.cpp @@ -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); |