Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 6th, 2012  |  syntax: None  |  size: 0.94 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.     // For totems get healing bonus from owner (statue isn't totem in fact)
  2.     if (GetTypeId() == TYPEID_UNIT && isTotem())
  3.         if (Unit* owner = GetOwner())
  4.             return owner->SpellHealingBonusDone(victim, spellProto, healamount, damagetype, stack);
  5.  
  6.     // No bonus healing for potion spells
  7.     if (spellProto->SpellFamilyName == SPELLFAMILY_POTION)
  8.         return healamount;
  9.  
  10.     float DoneTotalMod = 1.0f;
  11.     int32 DoneTotal = 0;
  12.  
  13.     // Healing done percent
  14.     AuraEffectList const& mHealingDonePct = GetAuraEffectsByType(SPELL_AURA_MOD_HEALING_DONE_PERCENT);
  15.     for (AuraEffectList::const_iterator i = mHealingDonePct.begin(); i != mHealingDonePct.end(); ++i)
  16.         AddPctN(DoneTotalMod, (*i)->GetAmount());
  17.  
  18.     // done scripted mod (take it from owner)
  19.     Unit* owner = GetOwner() ? GetOwner() : this;
  20.     AuraEffectList const& mOverrideClassScript= owner->GetAuraEffectsByType(SPELL_AURA_OVERRIDE_CLASS_SCRIPTS);