972 float bonusDamage = 0.0f;
974 PetSpellMap::const_iterator itr = (pet->ToPet()->m_spells.find(62758));
975 if (itr == pet->ToPet()->m_spells.end())
976 itr = pet->ToPet()->m_spells.find(62762);
978 if (itr != pet->ToPet()->m_spells.end())
986 amount += bonusDamage;
Definition: SharedDefines.h:29
Player * GetOwner() const
Definition: Pet.cpp:1913
Definition: SpellInfo.h:326
Pet * ToPet()
Definition: Unit.h:2200
Unit * GetUnitOwner() const
Definition: SpellScript.cpp:1016
#define sSpellMgr
Definition: SpellMgr.h:756
T CalculatePct(T base, U pct)
Definition: Util.h:92
SpellEffectInfo const * GetEffect(uint32 difficulty, uint32 index) const
Definition: SpellInfo.cpp:3348
int32 CalcValue(Unit const *caster=nullptr, int32 const *basePoints=nullptr, Unit const *target=nullptr, float *variance=nullptr, int32 itemLevel=-1) const
Definition: SpellInfo.cpp:455
float GetTotalAttackPowerValue(WeaponAttackType attType) const
Definition: Unit.cpp:11491