From 0b198b085d043057701840b5095747bdc15f3738 Mon Sep 17 00:00:00 2001 From: Trazom62 Date: Sun, 31 Jan 2010 22:03:58 +0100 Subject: [PATCH] Fix Glyph of Power Word: Shield Heal was given twice: - once when PW:S is applied (see SpellAuras.cpp line 982). - once when damage is actually absorbed. The blizz way is to heal when PW:S is applied. --HG-- branch : trunk --- src/game/Unit.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index bb48d49ab7..ac75bdb0ec 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -1895,13 +1895,6 @@ void Unit::CalcAbsorbResist(Unit *pVictim, SpellSchoolMask schoolMask, DamageEff Unit* caster = (*i)->GetCaster(); if (!caster) break; - // Glyph of Power Word: Shield - if (AuraEffect *glyph = pVictim->GetAuraEffect(55672, 0)) - { - int32 heal = int32(glyph->GetAmount() * - (RemainingDamage >= currentAbsorb ? currentAbsorb : RemainingDamage) / 100); - pVictim->CastCustomSpell(pVictim, 56160, &heal, NULL, NULL, true, 0, *i); - } // Reflective Shield if (AuraEffect const * aurEff = caster->GetDummyAuraEffect(SPELLFAMILY_PRIEST, 566, 0)) {