2205 {
2207 uint8 maxSafeLevel = 0;
2209 {
2211 maxSafeLevel = 40;
2212 break;
2214 maxSafeLevel = 70;
2215 break;
2217 maxSafeLevel = 80;
2218 break;
2219 default:
2220 break;
2221 }
2222
2223 if (caster->
GetLevel() > maxSafeLevel)
2224 {
2226
2227
2231
2233
2235 }
2236 }
std::uint8_t uint8
Definition Define.h:109
std::uint32_t uint32
Definition Define.h:107
uint32 urand(uint32 min, uint32 max)
Definition Random.cpp:44
TeamId GetTeamId(PvPTeamId teamId)
Definition SharedDefines.h:3728
@ TEAM_HORDE
Definition SharedDefines.h:772
SpellInfo const * GetSpellInfo()
Definition SpellScript.cpp:411
void PreventHitDefaultEffect(SpellEffIndex effIndex)
Definition SpellScript.cpp:590
Unit * GetCaster()
Definition SpellScript.cpp:401
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:1194
uint8 GetLevel() const
Definition Unit.h:1065
@ SPELL_SCROLL_OF_RECALL_III
Definition spell_item.cpp:2189
@ SPELL_LOST
Definition spell_item.cpp:2190
@ SPELL_SCROLL_OF_RECALL_FAIL_ALLIANCE_1
Definition spell_item.cpp:2191
@ SPELL_SCROLL_OF_RECALL_I
Definition spell_item.cpp:2187
@ SPELL_SCROLL_OF_RECALL_II
Definition spell_item.cpp:2188
@ SPELL_SCROLL_OF_RECALL_FAIL_HORDE_1
Definition spell_item.cpp:2192