114 {
116
119 {
121 {
122
123 if (target->ToCreature())
125 return;
126
128 if (target->GetLevel() > 60)
129 return;
130
131 uint8 pct = std::max(0, 20 + player->GetLevel() - target->GetLevel());
136 }
137 }
138 }
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:106
@ SPELL_AMPLIFY_CHARM_30S
Definition: spell_item.cpp:105
@ SPELL_MENTAL_BATTLE
Definition: spell_item.cpp:104
@ SPELL_AMPLIFY_10S
Definition: spell_item.cpp:103
@ CREATURE_ELITE_NORMAL
Definition: SharedDefines.h:2731
Player * ToPlayer()
Definition: Object.h:201
Definition: Player.h:1081
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