aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGiacomo Pozzoni <giacomopoz@gmail.com>2019-01-10 19:21:20 +0100
committerGitHub <noreply@github.com>2019-01-10 19:21:20 +0100
commit545bee04961450465a851196412f56b5578d9837 (patch)
tree10a6b0f79ba77d45d2e94d589ae00fe4774e1e92 /src
parent3c0334fd7b2217db2d52836fdcc3af9ffe811a91 (diff)
Scripts/Spells: Fix infinite loop in Power Word Shield (#22918)
Fix infinite loop in Power Word Shield triggering back and forth the damage spell between 2 players, both with Power Word Shield
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_priest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_priest.cpp b/src/server/scripts/Spells/spell_priest.cpp
index ed4a7c0d714..4b0547e6d3b 100644
--- a/src/server/scripts/Spells/spell_priest.cpp
+++ b/src/server/scripts/Spells/spell_priest.cpp
@@ -1029,6 +1029,10 @@ class spell_pri_power_word_shield : public SpellScriptLoader
if (dmgInfo.GetAttacker() == target)
return;
+ // Don't try to reflect the reflect spell
+ if (dmgInfo.GetSpellInfo() && dmgInfo.GetSpellInfo()->Id == SPELL_PRIEST_REFLECTIVE_SHIELD_TRIGGERED)
+ return;
+
if (AuraEffect* talentAurEff = target->GetAuraEffectOfRankedSpell(SPELL_PRIEST_REFLECTIVE_SHIELD_R1, EFFECT_0))
{
CastSpellExtraArgs args(aurEff);