Jump to content

krysys

Members
  • Posts

    1
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

krysys's Achievements

Newbie

Newbie (1/3)

0

Reputation

  1. Hi guys: Excuse me, but my english is very bad. I´ve tested this fix. Yes, it add bonus of 20% to heal at spell Nourish, but with this fix, the spell lose heal bonus equip. I think that a possible solution is to put this line in the end of for: --- mangos/src/game/SpellEffects.cpp 2009-03-27 14:41:29.000000000 -0300 +++ patch/src/game/SpellEffects.cpp 2009-03-27 14:22:00.000000000 -0300 @@ -2473,6 +2473,23 @@ addhealth += tickheal * tickcount; } + //Nourish 20% of heal increase if target is afected by Druids HOTs + else if(m_spellInfo->SpellFamilyFlags&0x0200000000000000LL){ + Unit::AuraList const& RejorRegr = unitTarget->GetAurasByType(SPELL_AURA_PERIODIC_HEAL); + + for(Unit::AuraList::const_iterator i = RejorRegr.begin(); i != RejorRegr.end(); ++i) + { + if((*i)->GetSpellProto()->SpellFamilyName == SPELLFAMILY_DRUID) + { + addhealth+=addhealth*0.2; + break; + } + } + + addhealth = caster->SpellHealingBonus(unitTarget, m_spellInfo, addhealth, HEAL); + + } + else + addhealth = caster->SpellHealingBonus(unitTarget, m_spellInfo, addhealth, HEAL); If my solution is correct, please, say me. Thanks.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use