113 {
115
118 {
120 {
121
122 if (target->ToCreature())
124 return;
125
127 if (target->GetLevel() > 60)
128 return;
129
130 uint8 pct = std::max(0, 20 + player->GetLevel() - target->GetLevel());
135 }
136 }
137 }
bool roll_chance_i(int chance)
Definition: Random.h:59
std::uint8_t uint8
Definition: Define.h:109
@ SPELL_AMPLIFY_CHARM_10S
Definition: spell_item.cpp:105
@ SPELL_AMPLIFY_CHARM_30S
Definition: spell_item.cpp:104
@ SPELL_MENTAL_BATTLE
Definition: spell_item.cpp:103
@ SPELL_AMPLIFY_10S
Definition: spell_item.cpp:102
@ CREATURE_ELITE_NORMAL
Definition: SharedDefines.h:2731
Player * ToPlayer()
Definition: Object.h:198
Definition: Player.h:1064
SpellInfo const * GetSpellInfo()
Definition: SpellScript.cpp:411
void PreventHitDefaultEffect(SpellEffIndex effIndex)
Definition: SpellScript.cpp:590
Unit * GetHitUnit()
Definition: SpellScript.cpp:448
Unit * GetCaster()
Definition: SpellScript.cpp:401