1163 {
1167 {
1169 switch (target->GetEntry())
1170 {
1173 break;
1176 break;
1179 break;
1182 break;
1185 break;
1186 default:
1187 return;
1188 }
1189 caster->
CastSpell(caster, spellId,
true, castItem);
1191 target->DespawnOrUnsummon();
1192 }
1193 }
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:1128
@ SPELL_SUMMON_SCAVENGEBOT_004A8
Definition spell_quest.cpp:1127
@ NPC_DEFENDOTANK_66D
Definition spell_quest.cpp:1135
@ SPELL_SUMMON_55D_COLLECTATRON
Definition spell_quest.cpp:1131
@ SPELL_SUMMON_SCAVENGEBOT_005B6
Definition spell_quest.cpp:1130
@ NPC_SCAVENGEBOT_004A8
Definition spell_quest.cpp:1133
@ NPC_SCAVENGEBOT_005B6
Definition spell_quest.cpp:1136
@ NPC_SENTRYBOT_57K
Definition spell_quest.cpp:1134
@ SPELL_SUMMON_DEFENDOTANK_66D
Definition spell_quest.cpp:1129
@ SPELL_ROBOT_KILL_CREDIT
Definition spell_quest.cpp:1132
@ NPC_55D_COLLECTATRON
Definition spell_quest.cpp:1137