From 793f87fd61e192e7719d242d299e62f1462958db Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Wed, 10 Jul 2024 00:39:58 +0200 Subject: [PATCH] fix(Core/GameObject): Use correct spell at meeting stone (#19311) * fix(Core/GameObject): Use correct spell at meeting stone * cleanup --- src/server/game/Entities/GameObject/GameObject.cpp | 2 +- src/server/game/Spells/SpellEffects.cpp | 2 +- src/server/game/Spells/SpellInfoCorrections.cpp | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp index 44776dc46a3459..cbba5a95408b39 100644 --- a/src/server/game/Entities/GameObject/GameObject.cpp +++ b/src/server/game/Entities/GameObject/GameObject.cpp @@ -1921,7 +1921,7 @@ void GameObject::Use(Unit* user) if (info->entry == 194097) spellId = 61994; // Ritual of Summoning else - spellId = 59782; // Summoning Stone Effect + spellId = 23598; // Meeting Stone Summon break; } diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index 992f3102bea058..e1172ff87b9c05 100644 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -1066,7 +1066,7 @@ void Spell::EffectTriggerRitualOfSummoning(SpellEffIndex effIndex) finish(); - m_caster->CastSpell((Unit*)nullptr, spellInfo, false); + m_caster->CastSpell((Unit*)nullptr, spellInfo, true); } void Spell::EffectJump(SpellEffIndex effIndex) diff --git a/src/server/game/Spells/SpellInfoCorrections.cpp b/src/server/game/Spells/SpellInfoCorrections.cpp index 91f08e0fc3356c..e0387de8f257fe 100644 --- a/src/server/game/Spells/SpellInfoCorrections.cpp +++ b/src/server/game/Spells/SpellInfoCorrections.cpp @@ -1943,7 +1943,8 @@ void SpellMgr::LoadSpellInfoCorrections() }); // Ulduar, Mimiron, Magnetic Core (summon) - ApplySpellFix({ 64444 }, [](SpellInfo* spellInfo) + // Meeting Stone Summon + ApplySpellFix({ 64444, 23598 }, [](SpellInfo* spellInfo) { spellInfo->Effects[EFFECT_0].TargetA = SpellImplicitTargetInfo(TARGET_DEST_CASTER); });