1155 {
1159 {
1161 switch (target->GetEntry())
1162 {
1165 break;
1168 break;
1171 break;
1174 break;
1177 break;
1178 default:
1179 return;
1180 }
1181 caster->
CastSpell(caster, spellId,
true, castItem);
1183 target->DespawnOrUnsummon();
1184 }
1185 }
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:1375
@ SPELL_SUMMON_SENTRYBOT_57K
Definition spell_quest.cpp:1120
@ SPELL_SUMMON_SCAVENGEBOT_004A8
Definition spell_quest.cpp:1119
@ NPC_DEFENDOTANK_66D
Definition spell_quest.cpp:1127
@ SPELL_SUMMON_55D_COLLECTATRON
Definition spell_quest.cpp:1123
@ SPELL_SUMMON_SCAVENGEBOT_005B6
Definition spell_quest.cpp:1122
@ NPC_SCAVENGEBOT_004A8
Definition spell_quest.cpp:1125
@ NPC_SCAVENGEBOT_005B6
Definition spell_quest.cpp:1128
@ NPC_SENTRYBOT_57K
Definition spell_quest.cpp:1126
@ SPELL_SUMMON_DEFENDOTANK_66D
Definition spell_quest.cpp:1121
@ SPELL_ROBOT_KILL_CREDIT
Definition spell_quest.cpp:1124
@ NPC_55D_COLLECTATRON
Definition spell_quest.cpp:1129