fix(Scripts/World): Prevent Taerar to be untargetable on death (#12351)

prevent unlooting and untargetable boss if kill too quickly
This commit is contained in:
Maelthyr
2022-07-10 20:19:43 +02:00
committed by GitHub
parent 2c7b274bc5
commit 5cb69ef600
@@ -643,6 +643,12 @@ public:
emerald_dragonAI::UpdateAI(diff); emerald_dragonAI::UpdateAI(diff);
} }
void JustDied(Unit* /*killer*/) override
{
_JustDied();
me->RemoveUnitFlag(UNIT_FLAG_NOT_SELECTABLE | UNIT_FLAG_NON_ATTACKABLE);
}
private: private:
bool _banished; // used for shades activation testing bool _banished; // used for shades activation testing
uint32 _banishedTimer; // counter for banishment timeout uint32 _banishedTimer; // counter for banishment timeout