Core/Spells: Implemented SPELL_EFFECT_UPDATE_INTERACTIONS

Port From (https://github.com/TrinityCore/TrinityCore/commit/ad06dcaaec6b55e3c2e6ae8214a44074f343c8ca)
This commit is contained in:
Hondacrx
2025-05-18 19:11:40 -04:00
parent 43d8277558
commit 6097bf92cc
2 changed files with 14 additions and 1 deletions
+13
View File
@@ -5909,6 +5909,19 @@ namespace Game.Spells
unitTarget.ToPlayer()?.RepopAtGraveyard();
}
[SpellEffectHandler(SpellEffectName.UpdateInteractions)]
void EffectUpdateInteractions()
{
if (effectHandleMode != SpellEffectHandleMode.HitTarget)
return;
Player target = unitTarget?.ToPlayer();
if (target == null)
return;
target.UpdateVisibleObjectInteractions(true, false, true, true);
}
}
public class DispelableAura