creature dead unsummon pet. (#6)
Signed-off-by: Zwisus <zlt988@gmail.com>
This commit is contained in:
parent
482a386e68
commit
c07868a998
@ -1679,6 +1679,11 @@ void Creature::SetDeathState(DeathState s)
|
||||
if (CanFly())
|
||||
{ i_motionMaster.MoveFall(); }
|
||||
|
||||
if (Pet* pet = GetPet())
|
||||
{
|
||||
pet->Unsummon(PET_SAVE_AS_DELETED, this);
|
||||
}
|
||||
|
||||
Unit::SetDeathState(CORPSE);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user