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
+1 -1
View File
@@ -4737,7 +4737,7 @@ namespace Game.Spells
new StaticData(SpellEffectImplicitTargetTypes.Explicit, SpellTargetObjectTypes.Unit), // 303 SPELL_EFFECT_CREATE_TRAIT_TREE_CONFIG
new StaticData(SpellEffectImplicitTargetTypes.Explicit, SpellTargetObjectTypes.Unit), // 304 SPELL_EFFECT_CHANGE_ACTIVE_COMBAT_TRAIT_CONFIG
new StaticData(SpellEffectImplicitTargetTypes.None, SpellTargetObjectTypes.None), // 305 SPELL_EFFECT_305
new StaticData(SpellEffectImplicitTargetTypes.None, SpellTargetObjectTypes.None), // 306 SPELL_EFFECT_UPDATE_INTERACTIONS
new StaticData(SpellEffectImplicitTargetTypes.Explicit, SpellTargetObjectTypes.Unit), // 306 SPELL_EFFECT_UPDATE_INTERACTIONS
new StaticData(SpellEffectImplicitTargetTypes.None, SpellTargetObjectTypes.None), // 307 SPELL_EFFECT_307
new StaticData(SpellEffectImplicitTargetTypes.None, SpellTargetObjectTypes.None), // 308 SPELL_EFFECT_CANCEL_PRELOAD_WORLD
new StaticData(SpellEffectImplicitTargetTypes.None, SpellTargetObjectTypes.None), // 309 SPELL_EFFECT_PRELOAD_WORLD