fix(Core/Scripts): Fix boss scripts resetting during death/defeat RP after threat system port (#25185)

Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
Co-authored-by: Treeston <treeston.mmoc@gmail.com>
This commit is contained in:
blinkysc
2026-03-22 11:07:29 -05:00
committed by GitHub
parent 94faf55a86
commit d3f1be6d22
8 changed files with 34 additions and 11 deletions
@@ -95,7 +95,7 @@ struct boss_skeram : public BossAI
creature->CastSpell(creature, SPELL_BIRTH, true);
creature->SetControlled(true, UNIT_STATE_ROOT);
creature->SetReactState(REACT_PASSIVE);
creature->SetImmuneToAll(true);
creature->SetImmuneToAll(true, true);
_copiesGUIDs.push_back(creature->GetGUID());
}
@@ -211,7 +211,7 @@ struct boss_skeram : public BossAI
_copiesGUIDs.clear();
DoCast(me, SPELL_SUMMON_IMAGES, true);
me->SetReactState(REACT_PASSIVE);
me->SetImmuneToAll(true);
me->SetImmuneToAll(true, true);
me->SetControlled(true, UNIT_STATE_ROOT);
Talk(SAY_SPLIT);
_hpct -= 25.0f;