539 {
541 {
543 if (!shooter)
544 return;
545
548 for (; task < 4; ++task)
550 break;
551
552 switch (task)
553 {
554 case 0:
556 break;
557 case 1:
559 break;
560 case 2:
562 break;
563 case 3:
565 break;
566 }
567
569 shooter->
CastSpell(player, spellId,
true);
570 }
571 }
std::uint8_t uint8
Definition: Define.h:109
std::uint32_t uint32
Definition: Define.h:107
static Position ShooterPos[]
Definition: spell_quest.cpp:520
@ SPELL_SOARING_10710
Definition: spell_quest.cpp:505
@ SPELL_CANNON_CHARGING_PORT
Definition: spell_quest.cpp:497
@ NPC_GNOME_SHOOTER
Definition: spell_quest.cpp:512
@ SPELL_SOARING_10557
Definition: spell_quest.cpp:504
@ SPELL_SOARING_10712
Definition: spell_quest.cpp:507
@ SPELL_SOARING_10711
Definition: spell_quest.cpp:506
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2446
float GetDistance(WorldObject const *obj) const
Definition: Object.cpp:1245
Definition: Player.h:1064
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