2129 {
2131 uint8 maxSafeLevel = 0;
2133 {
2135 maxSafeLevel = 40;
2136 break;
2138 maxSafeLevel = 70;
2139 break;
2141 maxSafeLevel = 80;
2142 break;
2143 default:
2144 break;
2145 }
2146
2147 if (caster->
GetLevel() > maxSafeLevel)
2148 {
2150
2151
2155
2157
2159 }
2160 }
std::uint8_t uint8
Definition: Define.h:110
std::uint32_t uint32
Definition: Define.h:108
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:44
@ SPELL_SCROLL_OF_RECALL_III
Definition: spell_item.cpp:2113
@ SPELL_LOST
Definition: spell_item.cpp:2114
@ SPELL_SCROLL_OF_RECALL_FAIL_ALLIANCE_1
Definition: spell_item.cpp:2115
@ SPELL_SCROLL_OF_RECALL_I
Definition: spell_item.cpp:2111
@ SPELL_SCROLL_OF_RECALL_II
Definition: spell_item.cpp:2112
@ SPELL_SCROLL_OF_RECALL_FAIL_HORDE_1
Definition: spell_item.cpp:2116
@ TEAM_HORDE
Definition: SharedDefines.h:733
TeamId GetTeamId(PvPTeamId teamId)
Definition: SharedDefines.h:3434
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:1169
uint8 GetLevel() const
Definition: Unit.h:1420
SpellInfo const * GetSpellInfo()
Definition: SpellScript.cpp:411
void PreventHitDefaultEffect(SpellEffIndex effIndex)
Definition: SpellScript.cpp:590
Unit * GetCaster()
Definition: SpellScript.cpp:401