1134 {
1138 {
1140 switch (target->GetEntry())
1141 {
1144 break;
1147 break;
1150 break;
1153 break;
1156 break;
1157 default:
1158 return;
1159 }
1160 caster->
CastSpell(caster, spellId,
true, castItem);
1162 target->DespawnOrUnsummon();
1163 }
1164 }
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:1178
@ SPELL_SUMMON_SENTRYBOT_57K
Definition spell_quest.cpp:1099
@ SPELL_SUMMON_SCAVENGEBOT_004A8
Definition spell_quest.cpp:1098
@ NPC_DEFENDOTANK_66D
Definition spell_quest.cpp:1106
@ SPELL_SUMMON_55D_COLLECTATRON
Definition spell_quest.cpp:1102
@ SPELL_SUMMON_SCAVENGEBOT_005B6
Definition spell_quest.cpp:1101
@ NPC_SCAVENGEBOT_004A8
Definition spell_quest.cpp:1104
@ NPC_SCAVENGEBOT_005B6
Definition spell_quest.cpp:1107
@ NPC_SENTRYBOT_57K
Definition spell_quest.cpp:1105
@ SPELL_SUMMON_DEFENDOTANK_66D
Definition spell_quest.cpp:1100
@ SPELL_ROBOT_KILL_CREDIT
Definition spell_quest.cpp:1103
@ NPC_55D_COLLECTATRON
Definition spell_quest.cpp:1108