From b83071388c7d69f42dc57e299f20241be035a850 Mon Sep 17 00:00:00 2001 From: vrachv Date: Mon, 24 Feb 2025 14:49:33 +0000 Subject: [PATCH] fix(Scripts/SunwellPlateau) Fix flame touched stacking (#21594) --- .../SunwellPlateau/boss_eredar_twins.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_eredar_twins.cpp b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_eredar_twins.cpp index 676bd301c..e33aadb6e 100644 --- a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_eredar_twins.cpp +++ b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_eredar_twins.cpp @@ -22,6 +22,7 @@ #include "SpellInfo.h" #include "SpellScript.h" #include "SpellScriptLoader.h" +#include "SpellAuraEffects.h" #include "sunwell_plateau.h" enum Quotes @@ -365,8 +366,15 @@ public: return ValidateSpellInfo({ _touchSpell }); } - void OnPeriodic(AuraEffect const* /*aurEff*/) + void OnPeriodic(AuraEffect const* aurEff) { + if (aurEff->GetId() == SPELL_FLAME_SEAR) + { + uint32 tick = aurEff->GetTickNumber(); + if (tick % 2 != 0 || tick > 10) + return; + } + if (Unit* owner = GetOwner()->ToUnit()) owner->CastSpell(owner, _touchSpell, true); }