mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Core/Spells: Implemented SPELL_EFFECT_TELEPORT_GRAVEYARD
* part of #28508
This commit is contained in:
@@ -414,6 +414,7 @@ class TC_GAME_API Spell
|
||||
void EffectModifySpellCharges();
|
||||
void EffectCreateTraitTreeConfig();
|
||||
void EffectChangeActiveCombatTraitConfig();
|
||||
void EffectTeleportGraveyard();
|
||||
|
||||
typedef std::unordered_set<Aura*> UsedSpellMods;
|
||||
|
||||
|
||||
@@ -207,7 +207,7 @@ NonDefaultConstructible<SpellEffectHandlerFn> SpellEffectHandlers[TOTAL_SPELL_EF
|
||||
&Spell::EffectSpiritHeal, //117 SPELL_EFFECT_SPIRIT_HEAL one spell: Spirit Heal
|
||||
&Spell::EffectSkill, //118 SPELL_EFFECT_SKILL professions and more
|
||||
&Spell::EffectUnused, //119 SPELL_EFFECT_APPLY_AREA_AURA_PET
|
||||
&Spell::EffectNULL, //120 SPELL_EFFECT_TELEPORT_GRAVEYARD
|
||||
&Spell::EffectTeleportGraveyard, //120 SPELL_EFFECT_TELEPORT_GRAVEYARD
|
||||
&Spell::EffectWeaponDmg, //121 SPELL_EFFECT_NORMALIZED_WEAPON_DMG
|
||||
&Spell::EffectUnused, //122 SPELL_EFFECT_122 unused
|
||||
&Spell::EffectSendTaxi, //123 SPELL_EFFECT_SEND_TAXI taxi/flight related (misc value is taxi path id)
|
||||
@@ -5976,3 +5976,15 @@ void Spell::EffectChangeActiveCombatTraitConfig()
|
||||
|
||||
target->UpdateTraitConfig(std::move(*traitConfig), damage, false);
|
||||
}
|
||||
|
||||
void Spell::EffectTeleportGraveyard()
|
||||
{
|
||||
if (effectHandleMode != SPELL_EFFECT_HANDLE_HIT_TARGET)
|
||||
return;
|
||||
|
||||
Player* target = Object::ToPlayer(unitTarget);
|
||||
if (!target)
|
||||
return;
|
||||
|
||||
target->RepopAtGraveyard();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user