fix(Core/Creatures): Properly reset encounter if boss despawns on evade. (#11251)

Fixes #8167
This commit is contained in:
UltraNix
2022-04-02 16:46:27 +02:00
committed by GitHub
parent 23e4dc9503
commit ff654397e8
2 changed files with 6 additions and 20 deletions

View File

@@ -2012,18 +2012,6 @@ void Creature::DespawnOnEvade()
{
SetVisible(false);
AI()->SummonedCreatureDespawnAll();
RemoveEvadeAuras();
float x, y, z, o;
GetRespawnPosition(x, y, z, &o);
SetHomePosition(x, y, z, o);
SetPosition(x, y, z, o);
if (IsFalling())
{
RemoveUnitMovementFlag(MOVEMENTFLAG_FALLING);
}
StopMoving();
}
void Creature::RespawnOnEvade()