1097 uint32 minResistFactor =
uint32((resistance / (resistance + 510.0f)) * 10.0f) * 2;
1098 uint32 randomResist =
urand(0, (9 - minResistFactor) * 100) / 100 + minResistFactor;
1103 damageInfo.damage = damage;
void PreventHitDefaultEffect(SpellEffIndex effIndex)
Definition: SpellScript.cpp:583
SpellSchoolMask
Definition: SharedDefines.h:285
uint32 _targetCount
Definition: boss_sindragosa.cpp:1115
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:45
uint32_t uint32
Definition: Define.h:150
SpellInfo const * GetSpellInfo()
Definition: SpellScript.cpp:404
void DealSpellDamage(SpellNonMeleeDamage const *damageInfo, bool durabilityLoss)
Definition: Unit.cpp:1094
void SendSpellNonMeleeDamageLog(SpellNonMeleeDamage const *log)
Definition: Unit.cpp:4839
Unit * GetCaster()
Definition: SpellScript.cpp:394
Unit * GetHitUnit()
Definition: SpellScript.cpp:441
int32 GetEffectValue() const
Definition: SpellScript.cpp:600
uint32_t uint32
Definition: g3dmath.h:168