1173 {
1175 if (!caster || !caster->
IsPlayer())
1176 return;
1177
1179 {
1180 if (loc->GetExactDist(caster) < 3.0f)
1181 {
1184 }
1185 else if (loc->GetExactDist(caster) < 10.0f)
1186 {
1189 }
1190 else if (loc->GetExactDist(caster) < 25.0f)
1191 {
1194 }
1195 else
1196 {
1199 }
1200 }
1201 else
1202 {
1205 }
1206 }
@ SPELL_TORCH_SHADOW_MED
Definition: midsummer.cpp:1149
@ SPELL_TORCH_SHADOW_SELF
Definition: midsummer.cpp:1147
@ SPELL_JUGGLE_FAST
Definition: midsummer.cpp:1140
@ SPELL_JUGGLE_SLOW
Definition: midsummer.cpp:1138
@ SPELL_JUGGLE_SELF
Definition: midsummer.cpp:1137
@ SPELL_TORCH_SHADOW_SLOW
Definition: midsummer.cpp:1148
@ SPELL_JUGGLE_MED
Definition: midsummer.cpp:1139
@ SPELL_TORCH_SHADOW_FAST
Definition: midsummer.cpp:1150
bool IsPlayer() const
Definition: Object.h:200
Definition: Position.h:250
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:1167
WorldLocation const * GetExplTargetDest()
Definition: SpellScript.cpp:416
Unit * GetCaster()
Definition: SpellScript.cpp:401