fix(Scripts/Hyjal): Anetheron dont sleep main tank (#19544)

* fix(Scripts/Hyjal): Anetheron dont sleep main tank

* Update boss_anetheron.cpp
This commit is contained in:
Andrew
2024-08-06 09:00:25 -03:00
committed by GitHub
parent 26f70894ed
commit b8de917800

View File

@@ -16,6 +16,7 @@
*/
#include "CreatureScript.h"
#include "GridNotifiers.h"
#include "ScriptedCreature.h"
#include "SpellScript.h"
#include "SpellScriptLoader.h"
@@ -145,7 +146,12 @@ class spell_anetheron_sleep : public SpellScript
void FilterTargets(std::list<WorldObject*>& targets)
{
if (!targets.empty())
{
if (Unit* victim = GetCaster()->GetVictim())
targets.remove_if(Acore::ObjectGUIDCheck(victim->GetGUID(), true));
Acore::Containers::RandomResize(targets, 3);
}
}
void Register() override