807 {
809
811 return;
812
814 float ResistFactor = ((resistance * 2.0f) / (resistance + 510.0f));
815 if (ResistFactor > 0.9f)
816 ResistFactor = 0.9f;
817
819
821 damageInfo.damage = damage;
824 }
std::uint32_t uint32
Definition: Define.h:107
SpellSchoolMask
Definition: SharedDefines.h:295
void DealSpellDamage(SpellNonMeleeDamage *damageInfo, bool durabilityLoss, Spell const *spell=nullptr)
Definition: Unit.cpp:1438
void SendSpellNonMeleeDamageLog(SpellNonMeleeDamage *log)
Definition: Unit.cpp:6310
SpellInfo const * GetSpellInfo()
Definition: SpellScript.cpp:411
void PreventHitDefaultEffect(SpellEffIndex effIndex)
Definition: SpellScript.cpp:590
int32 GetEffectValue() const
Definition: SpellScript.cpp:600
Unit * GetHitUnit()
Definition: SpellScript.cpp:448
Unit * GetCaster()
Definition: SpellScript.cpp:401