2369 {
2371 uint8 maxSafeLevel = 0;
2373 {
2375 maxSafeLevel = 40;
2376 break;
2378 maxSafeLevel = 70;
2379 break;
2381 maxSafeLevel = 80;
2382 break;
2383 default:
2384 break;
2385 }
2386
2387 if (caster->
GetLevel() > maxSafeLevel)
2388 {
2390
2391
2395
2397
2399 }
2400 }
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:3720
@ TEAM_HORDE
Definition SharedDefines.h:749
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:1350
uint8 GetLevel() const
Definition Unit.h:1103
@ SPELL_SCROLL_OF_RECALL_III
Definition spell_item.cpp:2353
@ SPELL_LOST
Definition spell_item.cpp:2354
@ SPELL_SCROLL_OF_RECALL_FAIL_ALLIANCE_1
Definition spell_item.cpp:2355
@ SPELL_SCROLL_OF_RECALL_I
Definition spell_item.cpp:2351
@ SPELL_SCROLL_OF_RECALL_II
Definition spell_item.cpp:2352
@ SPELL_SCROLL_OF_RECALL_FAIL_HORDE_1
Definition spell_item.cpp:2356