◆ PrepareSpellScript()
275 {
277 if (!target)
278 return;
279
282
283
284 int32 damage = targetHealth - fivePctHealth;
285
286 if (damage <= 0)
287 damage = 0;
288
290 }
std::int32_t int32
Definition Define.h:103
Unit * GetHitUnit()
Definition SpellScript.cpp:448
void SetHitDamage(int32 damage)
Definition SpellScript.cpp:524
uint32 GetHealth() const
Definition Unit.h:1093
uint32 CountPctFromMaxHealth(int32 pct) const
Definition Unit.h:1106
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