1173 {
1177 {
1179 switch (target->GetEntry())
1180 {
1183 break;
1186 break;
1189 break;
1192 break;
1195 break;
1196 default:
1197 return;
1198 }
1199 caster->
CastSpell(caster, spellId,
true, castItem);
1201 target->DespawnOrUnsummon();
1202 }
1203 }
std::uint32_t uint32
Definition: Define.h:108
@ SPELL_SUMMON_SENTRYBOT_57K
Definition: spell_quest.cpp:1138
@ SPELL_SUMMON_SCAVENGEBOT_004A8
Definition: spell_quest.cpp:1137
@ NPC_DEFENDOTANK_66D
Definition: spell_quest.cpp:1145
@ SPELL_SUMMON_55D_COLLECTATRON
Definition: spell_quest.cpp:1141
@ SPELL_SUMMON_SCAVENGEBOT_005B6
Definition: spell_quest.cpp:1140
@ NPC_SCAVENGEBOT_004A8
Definition: spell_quest.cpp:1143
@ NPC_SCAVENGEBOT_005B6
Definition: spell_quest.cpp:1146
@ NPC_SENTRYBOT_57K
Definition: spell_quest.cpp:1144
@ SPELL_SUMMON_DEFENDOTANK_66D
Definition: spell_quest.cpp:1139
@ SPELL_ROBOT_KILL_CREDIT
Definition: spell_quest.cpp:1142
@ NPC_55D_COLLECTATRON
Definition: spell_quest.cpp:1147
Definition: Creature.h:46
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
Creature * GetHitCreature()
Definition: SpellScript.cpp:458
Item * GetCastItem()
Definition: SpellScript.cpp:620
Unit * GetCaster()
Definition: SpellScript.cpp:401