mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-29 08:33:47 +00:00
fix(Core/Creatures): Properly reset encounter if boss despawns on evade. (#11251)
Fixes #8167
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user