272 {
274 return;
275
277 {
278 const int32 maxDamage = caster->GetMap()->GetSpawnMode() == 1 ? 15000 : 10000;
281 newDamage = std::min<int32>(maxDamage, newDamage);
282
284 }
285 }
std::int32_t int32
Definition: Define.h:103
@ POWER_MANA
Definition: SharedDefines.h:269
uint32 GetMaxPower(Powers power) const
Definition: Unit.h:1057
Unit * GetHitUnit()
Definition: SpellScript.cpp:448
void SetHitDamage(int32 damage)
Definition: SpellScript.cpp:524
Unit * GetCaster()
Definition: SpellScript.cpp:401
int32 GetHitDamage()
Definition: SpellScript.cpp:514