2163 {
2165 uint8 maxSafeLevel = 0;
2167 {
2169 maxSafeLevel = 40;
2170 break;
2172 maxSafeLevel = 70;
2173 break;
2175 maxSafeLevel = 80;
2176 break;
2177 default:
2178 break;
2179 }
2180
2181 if (caster->
GetLevel() > maxSafeLevel)
2182 {
2184
2185
2189
2191
2193 }
2194 }
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:44
std::uint8_t uint8
Definition: Define.h:109
std::uint32_t uint32
Definition: Define.h:107
@ SPELL_SCROLL_OF_RECALL_III
Definition: spell_item.cpp:2147
@ SPELL_LOST
Definition: spell_item.cpp:2148
@ SPELL_SCROLL_OF_RECALL_FAIL_ALLIANCE_1
Definition: spell_item.cpp:2149
@ SPELL_SCROLL_OF_RECALL_I
Definition: spell_item.cpp:2145
@ SPELL_SCROLL_OF_RECALL_II
Definition: spell_item.cpp:2146
@ SPELL_SCROLL_OF_RECALL_FAIL_HORDE_1
Definition: spell_item.cpp:2150
TeamId GetTeamId(PvPTeamId teamId)
Definition: SharedDefines.h:3462
@ TEAM_HORDE
Definition: SharedDefines.h:761
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1168
uint8 GetLevel() const
Definition: Unit.h:855
SpellInfo const * GetSpellInfo()
Definition: SpellScript.cpp:411
void PreventHitDefaultEffect(SpellEffIndex effIndex)
Definition: SpellScript.cpp:590
Unit * GetCaster()
Definition: SpellScript.cpp:401