fix(Core/AI): Don't set boss state to none if already complete (#19139)
This commit is contained in:
@@ -653,7 +653,7 @@ void BossAI::_JustEngagedWith()
|
|||||||
void BossAI::_EnterEvadeMode(EvadeReason why)
|
void BossAI::_EnterEvadeMode(EvadeReason why)
|
||||||
{
|
{
|
||||||
CreatureAI::EnterEvadeMode(why);
|
CreatureAI::EnterEvadeMode(why);
|
||||||
if (instance)
|
if (instance && instance->GetBossState(_bossId) != DONE)
|
||||||
{
|
{
|
||||||
instance->SetBossState(_bossId, NOT_STARTED);
|
instance->SetBossState(_bossId, NOT_STARTED);
|
||||||
instance->SaveToDB();
|
instance->SaveToDB();
|
||||||
|
|||||||
Reference in New Issue
Block a user