2407 {
2409 uint8 maxSafeLevel = 0;
2411 {
2413 maxSafeLevel = 40;
2414 break;
2416 maxSafeLevel = 70;
2417 break;
2419 maxSafeLevel = 80;
2420 break;
2421 default:
2422 break;
2423 }
2424
2425 if (caster->
GetLevel() > maxSafeLevel)
2426 {
2428
2429
2433
2435
2437 }
2438 }
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:3718
@ TEAM_HORDE
Definition SharedDefines.h:749
SpellInfo const * GetSpellInfo()
Definition SpellScript.cpp:423
void PreventHitDefaultEffect(SpellEffIndex effIndex)
Definition SpellScript.cpp:624
Unit * GetCaster()
Definition SpellScript.cpp:408
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:1394
uint8 GetLevel() const
Definition Unit.h:1116
@ SPELL_SCROLL_OF_RECALL_III
Definition spell_item.cpp:2391
@ SPELL_LOST
Definition spell_item.cpp:2392
@ SPELL_SCROLL_OF_RECALL_FAIL_ALLIANCE_1
Definition spell_item.cpp:2393
@ SPELL_SCROLL_OF_RECALL_I
Definition spell_item.cpp:2389
@ SPELL_SCROLL_OF_RECALL_II
Definition spell_item.cpp:2390
@ SPELL_SCROLL_OF_RECALL_FAIL_HORDE_1
Definition spell_item.cpp:2394