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:
@@ -1895,13 +1895,6 @@ void Unit::CalcAbsorbResist(Unit *pVictim, SpellSchoolMask schoolMask, DamageEff
|
|||||||
Unit* caster = (*i)->GetCaster();
|
Unit* caster = (*i)->GetCaster();
|
||||||
if (!caster)
|
if (!caster)
|
||||||
break;
|
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
|
// Reflective Shield
|
||||||
if (AuraEffect const * aurEff = caster->GetDummyAuraEffect(SPELLFAMILY_PRIEST, 566, 0))
|
if (AuraEffect const * aurEff = caster->GetDummyAuraEffect(SPELLFAMILY_PRIEST, 566, 0))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user