228 {
231 if (!target)
232 return;
233
235 {
238 }
239 else
240 {
242 if (rand < 15)
244 else if (rand < 35)
246 else
248 }
249 }
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:44
std::uint8_t uint8
Definition: Define.h:109
@ SPELL_AIR_RIFLE_RIGHT_IN_THE_EYE
Definition: winter_veil.cpp:214
@ SPELL_AIR_RIFLE_STARLED
Definition: winter_veil.cpp:215
@ SPELL_AIR_RIFLE_PELTED_DAMAGE
Definition: winter_veil.cpp:218
@ SPELL_AIR_RIFLE_HIT
Definition: winter_veil.cpp:216
@ SPELL_AIR_RIFLE_HIT_TRIGGER
Definition: winter_veil.cpp:217
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
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:1168
bool IsFriendlyTo(Unit const *unit) const
Definition: Unit.cpp:10203
SpellInfo const * GetSpellInfo()
Definition: SpellScript.cpp:411
Unit * GetHitUnit()
Definition: SpellScript.cpp:448
Unit * GetOriginalCaster()
Definition: SpellScript.cpp:406