1135 {
1139 {
1141 switch (target->GetEntry())
1142 {
1145 break;
1148 break;
1151 break;
1154 break;
1157 break;
1158 default:
1159 return;
1160 }
1161 caster->
CastSpell(caster, spellId,
true, castItem);
1163 target->DespawnOrUnsummon();
1164 }
1165 }
std::uint32_t uint32
Definition Define.h:107
Creature * GetHitCreature()
Definition SpellScript.cpp:458
Item * GetCastItem()
Definition SpellScript.cpp:620
Unit * GetCaster()
Definition SpellScript.cpp:401
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:1194
@ SPELL_SUMMON_SENTRYBOT_57K
Definition spell_quest.cpp:1100
@ SPELL_SUMMON_SCAVENGEBOT_004A8
Definition spell_quest.cpp:1099
@ NPC_DEFENDOTANK_66D
Definition spell_quest.cpp:1107
@ SPELL_SUMMON_55D_COLLECTATRON
Definition spell_quest.cpp:1103
@ SPELL_SUMMON_SCAVENGEBOT_005B6
Definition spell_quest.cpp:1102
@ NPC_SCAVENGEBOT_004A8
Definition spell_quest.cpp:1105
@ NPC_SCAVENGEBOT_005B6
Definition spell_quest.cpp:1108
@ NPC_SENTRYBOT_57K
Definition spell_quest.cpp:1106
@ SPELL_SUMMON_DEFENDOTANK_66D
Definition spell_quest.cpp:1101
@ SPELL_ROBOT_KILL_CREDIT
Definition spell_quest.cpp:1104
@ NPC_55D_COLLECTATRON
Definition spell_quest.cpp:1109