Skip to content

Commit cb8eaa0

Browse files
ccrsKrigsgaldrnet
authored andcommitted
Core/Entities: force CombatManager revalidation after applying charm
"Safely" goes through all combat references validating if in fact the unit should remain in combat or not Any edge case that may get affected by this, are scenarios in which the charmed unit must keep the combat and threat references prior to their charm.... I can't think of any. -> And honestly if there was any such case... imo it should be handled script wise, not core wise. closes #31747 updates #30169
1 parent 2dd1943 commit cb8eaa0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/server/game/Entities/Unit/Unit.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11575,6 +11575,7 @@ bool Unit::SetCharmedBy(Unit* charmer, CharmType type, AuraApplication const* au
1157511575

1157611576
// Set charmed
1157711577
charmer->SetCharm(this, true);
11578+
m_combatManager.RevalidateCombat();
1157811579

1157911580
if (Player* player = ToPlayer())
1158011581
{

0 commit comments

Comments
 (0)