Core/Spells: Implemented SPELL_EFFECT_TELEPORT_GRAVEYARD

Port From (https://github.com/TrinityCore/TrinityCore/commit/cdb209fda44eb500a7e8d9a0d4acd048e1ee5eec)
This commit is contained in:
hondacrx
2023-05-21 16:55:47 -04:00
parent dfceb4c044
commit d16f24d5c0
+9
View File
@@ -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