1128 {
1132 {
1134 switch (target->GetEntry())
1135 {
1138 break;
1141 break;
1144 break;
1147 break;
1150 break;
1151 default:
1152 return;
1153 }
1154 caster->
CastSpell(caster, spellId,
true, castItem);
1156 target->DespawnOrUnsummon();
1157 }
1158 }
std::uint32_t uint32
Definition: Define.h:107
@ SPELL_SUMMON_SENTRYBOT_57K
Definition: spell_quest.cpp:1093
@ SPELL_SUMMON_SCAVENGEBOT_004A8
Definition: spell_quest.cpp:1092
@ NPC_DEFENDOTANK_66D
Definition: spell_quest.cpp:1100
@ SPELL_SUMMON_55D_COLLECTATRON
Definition: spell_quest.cpp:1096
@ SPELL_SUMMON_SCAVENGEBOT_005B6
Definition: spell_quest.cpp:1095
@ NPC_SCAVENGEBOT_004A8
Definition: spell_quest.cpp:1098
@ NPC_SCAVENGEBOT_005B6
Definition: spell_quest.cpp:1101
@ NPC_SENTRYBOT_57K
Definition: spell_quest.cpp:1099
@ SPELL_SUMMON_DEFENDOTANK_66D
Definition: spell_quest.cpp:1094
@ SPELL_ROBOT_KILL_CREDIT
Definition: spell_quest.cpp:1097
@ NPC_55D_COLLECTATRON
Definition: spell_quest.cpp:1102
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:1168
Creature * GetHitCreature()
Definition: SpellScript.cpp:458
Item * GetCastItem()
Definition: SpellScript.cpp:620
Unit * GetCaster()
Definition: SpellScript.cpp:401