◆ PrepareSpellScript()
263 {
265 if (!target)
266 return;
267
270
271
272 int32 damage = targetHealth - fivePctHealth;
273
274 if (damage <= 0)
275 damage = 0;
276
278 }
std::int32_t int32
Definition Define.h:103
Unit * GetHitUnit()
Definition SpellScript.cpp:453
void SetHitDamage(int32 damage)
Definition SpellScript.cpp:529
uint32 GetHealth() const
Definition Unit.h:1114
uint32 CountPctFromMaxHealth(int32 pct) const
Definition Unit.h:1127
References Unit::CountPctFromMaxHealth(), Unit::GetHealth(), SpellScript::GetHitUnit(), and SpellScript::SetHitDamage().
◆ Register()
| void spell_gluth_decimate_damage::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
The documentation for this class was generated from the following file:
- azerothcore-wotlk/src/server/scripts/Northrend/Naxxramas/boss_gluth.cpp