diff options
| author | Trazom62 <none@none> | 2010-01-31 22:03:58 +0100 |
|---|---|---|
| committer | Trazom62 <none@none> | 2010-01-31 22:03:58 +0100 |
| commit | 0b198b085d043057701840b5095747bdc15f3738 (patch) | |
| tree | f04e805b8bf0ccf9bb4e067c0a25fdfcb1cb5227 /src | |
| parent | ba9197236c3d295d868fa36d6564c8f8f8fbff9e (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Unit.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index bb48d49ab7b..ac75bdb0ec1 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)) { |
