805 {
807
809 return;
810
812 float ResistFactor = ((resistance * 2.0f) / (resistance + 510.0f));
813 if (ResistFactor > 0.9f)
814 ResistFactor = 0.9f;
815
817
819 damageInfo.damage = damage;
822 }
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:1439
void SendSpellNonMeleeDamageLog(SpellNonMeleeDamage *log)
Definition: Unit.cpp:6281
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