◆ HandlePreventAura()
533 {
535 {
536 if (target->GetLevel() >= 30)
537 {
538 uint8 chance = 100 - std::min<uint8>(100, target->GetLevel() - 30 *
urand(3, 10));
540 {
542 }
543 }
544 }
545 }
std::uint8_t uint8
Definition Define.h:109
uint32 urand(uint32 min, uint32 max)
Definition Random.cpp:44
bool roll_chance_i(int chance)
Definition Random.h:63
Unit * GetHitUnit()
Definition SpellScript.cpp:448
void PreventHitAura()
Definition SpellScript.cpp:568
References SpellScript::GetHitUnit(), SpellScript::PreventHitAura(), roll_chance_i(), and urand().
Referenced by Register().
◆ PrepareSpellScript()
◆ Register()
| void spell_item_magic_dust::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
The documentation for this class was generated from the following file: