Core/Spells: Swiftmend will no longer benefit from Rejuvenation and Regrowth heals
This commit is contained in:
1 parent
ba1d2ba39c
commit
ab293696f2
1 file changed
-22
@@ -1252,31 +1252,9 @@ void Spell::EffectHeal(SpellEffIndex effIndex)
|
||||
return;
|
||||
}
|
||||
|
||||
int32 tickheal = (targetAura->GetAmount() + targetAura->GetBonusAmount()) * targetAura->GetDonePct();
|
||||
if (Player* modOwner = m_caster->GetSpellModOwner())
|
||||
modOwner->ApplySpellMod(targetAura->GetId(), SPELLMOD_DOT, tickheal);
|
||||
|
||||
unitTarget->SpellHealingBonusTaken(m_caster, targetAura->GetSpellInfo(), tickheal, DOT);
|
||||
|
||||
//int32 tickheal = targetAura->GetSpellInfo()->EffectBasePoints[idx] + 1;
|
||||
//It is said that talent bonus should not be included
|
||||
|
||||
int32 tickcount = 0;
|
||||
// Rejuvenation
|
||||
if (targetAura->GetSpellInfo()->SpellFamilyFlags[0] & 0x10)
|
||||
tickcount = 4;
|
||||
// Regrowth
|
||||
else // if (targetAura->GetSpellInfo()->SpellFamilyFlags[0] & 0x40)
|
||||
tickcount = 6;
|
||||
|
||||
addhealth += tickheal * tickcount;
|
||||
|
||||
// Glyph of Swiftmend
|
||||
if (!caster->HasAura(54824))
|
||||
unitTarget->RemoveAura(targetAura->GetId(), targetAura->GetCasterGUID());
|
||||
|
||||
//addhealth += tickheal * tickcount;
|
||||
//addhealth = caster->SpellHealingBonus(m_spellInfo, addhealth, HEAL, unitTarget);
|
||||
}
|
||||
// Death Pact - return pct of max health to caster
|
||||
else if (m_spellInfo->SpellFamilyName == SPELLFAMILY_DEATHKNIGHT && m_spellInfo->SpellFamilyFlags[0] & 0x00080000)
|
||||
|
||||
Reference in new issue
Block a user