◆ PrepareSpellScript()
264 {
266 if (!target)
267 return;
268
271
272
273 int32 damage = targetHealth - fivePctHealth;
274
275 if (damage <= 0)
276 damage = 0;
277
279 }
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:1109
uint32 CountPctFromMaxHealth(int32 pct) const
Definition Unit.h:1122
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