1114 {
1118 {
1120 switch (target->GetEntry())
1121 {
1124 break;
1127 break;
1130 break;
1133 break;
1136 break;
1137 default:
1138 return;
1139 }
1140 caster->
CastSpell(caster, spellId,
true, castItem);
1142 target->DespawnOrUnsummon();
1143 }
1144 }
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:1079
@ SPELL_SUMMON_SCAVENGEBOT_004A8
Definition spell_quest.cpp:1078
@ NPC_DEFENDOTANK_66D
Definition spell_quest.cpp:1086
@ SPELL_SUMMON_55D_COLLECTATRON
Definition spell_quest.cpp:1082
@ SPELL_SUMMON_SCAVENGEBOT_005B6
Definition spell_quest.cpp:1081
@ NPC_SCAVENGEBOT_004A8
Definition spell_quest.cpp:1084
@ NPC_SCAVENGEBOT_005B6
Definition spell_quest.cpp:1087
@ NPC_SENTRYBOT_57K
Definition spell_quest.cpp:1085
@ SPELL_SUMMON_DEFENDOTANK_66D
Definition spell_quest.cpp:1080
@ SPELL_ROBOT_KILL_CREDIT
Definition spell_quest.cpp:1083
@ NPC_55D_COLLECTATRON
Definition spell_quest.cpp:1088