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
This commit is contained in:
Trazom62
2010-01-31 22:03:58 +01:00
parent ba9197236c
commit 0b198b085d
-7
View File
@@ -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))
{