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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user