1170 {
1174 {
1176 switch (target->GetEntry())
1177 {
1180 break;
1183 break;
1186 break;
1189 break;
1192 break;
1193 default:
1194 return;
1195 }
1196 caster->
CastSpell(caster, spellId,
true, castItem);
1198 target->DespawnOrUnsummon();
1199 }
1200 }
std::uint32_t uint32
Definition: Define.h:108
@ SPELL_SUMMON_SENTRYBOT_57K
Definition: spell_quest.cpp:1135
@ SPELL_SUMMON_SCAVENGEBOT_004A8
Definition: spell_quest.cpp:1134
@ NPC_DEFENDOTANK_66D
Definition: spell_quest.cpp:1142
@ SPELL_SUMMON_55D_COLLECTATRON
Definition: spell_quest.cpp:1138
@ SPELL_SUMMON_SCAVENGEBOT_005B6
Definition: spell_quest.cpp:1137
@ NPC_SCAVENGEBOT_004A8
Definition: spell_quest.cpp:1140
@ NPC_SCAVENGEBOT_005B6
Definition: spell_quest.cpp:1143
@ NPC_SENTRYBOT_57K
Definition: spell_quest.cpp:1141
@ SPELL_SUMMON_DEFENDOTANK_66D
Definition: spell_quest.cpp:1136
@ SPELL_ROBOT_KILL_CREDIT
Definition: spell_quest.cpp:1139
@ NPC_55D_COLLECTATRON
Definition: spell_quest.cpp:1144
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