From d16f24d5c0aca66b4570bba52d8140e12d366f93 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 21 May 2023 16:55:47 -0400 Subject: [PATCH] Core/Spells: Implemented SPELL_EFFECT_TELEPORT_GRAVEYARD Port From (https://github.com/TrinityCore/TrinityCore/commit/cdb209fda44eb500a7e8d9a0d4acd048e1ee5eec) --- Source/Game/Spells/SpellEffects.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Source/Game/Spells/SpellEffects.cs b/Source/Game/Spells/SpellEffects.cs index f190103ed..f3a6a158b 100644 --- a/Source/Game/Spells/SpellEffects.cs +++ b/Source/Game/Spells/SpellEffects.cs @@ -5756,6 +5756,15 @@ namespace Game.Spells target.UpdateTraitConfig(m_customArg as TraitConfigPacket, damage, false); } + + [SpellEffectHandler(SpellEffectName.TeleportGraveyard)] + void EffectTeleportGraveyard() + { + if (effectHandleMode != SpellEffectHandleMode.HitTarget) + return; + + unitTarget.ToPlayer()?.RepopAtGraveyard(); + } } public class DispelableAura