mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 09:39:11 +00:00
fix(Core/AI): Fix bosses being stuck IN_PROGRESS if despawnonevade fl… (#19070)
fix(Core/AI): Fix bosses being stuck IN_PROGRESS if despawnonevade flag is used
This commit is contained in:
@@ -650,6 +650,16 @@ void BossAI::_JustEngagedWith()
|
||||
}
|
||||
}
|
||||
|
||||
void BossAI::_EnterEvadeMode(EvadeReason why)
|
||||
{
|
||||
CreatureAI::EnterEvadeMode(why);
|
||||
if (instance)
|
||||
{
|
||||
instance->SetBossState(_bossId, NOT_STARTED);
|
||||
instance->SaveToDB();
|
||||
}
|
||||
}
|
||||
|
||||
void BossAI::TeleportCheaters()
|
||||
{
|
||||
float x, y, z;
|
||||
|
||||
Reference in New Issue
Block a user