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:
parent
2c7b274bc5
commit
5cb69ef600
1 changed files with 6 additions and 0 deletions
|
|
@ -643,6 +643,12 @@ public:
|
|||
emerald_dragonAI::UpdateAI(diff);
|
||||
}
|
||||
|
||||
void JustDied(Unit* /*killer*/) override
|
||||
{
|
||||
_JustDied();
|
||||
me->RemoveUnitFlag(UNIT_FLAG_NOT_SELECTABLE | UNIT_FLAG_NON_ATTACKABLE);
|
||||
}
|
||||
|
||||
private:
|
||||
bool _banished; // used for shades activation testing
|
||||
uint32 _banishedTimer; // counter for banishment timeout
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue