1165 {
1169 {
1171 switch (target->GetEntry())
1172 {
1175 break;
1178 break;
1181 break;
1184 break;
1187 break;
1188 default:
1189 return;
1190 }
1191 caster->
CastSpell(caster, spellId,
true, castItem);
1193 target->DespawnOrUnsummon();
1194 }
1195 }
std::uint32_t uint32
Definition Define.h:107
Creature * GetHitCreature()
Definition SpellScript.cpp:463
Item * GetCastItem()
Definition SpellScript.cpp:625
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:1378
@ SPELL_SUMMON_SENTRYBOT_57K
Definition spell_quest.cpp:1130
@ SPELL_SUMMON_SCAVENGEBOT_004A8
Definition spell_quest.cpp:1129
@ NPC_DEFENDOTANK_66D
Definition spell_quest.cpp:1137
@ SPELL_SUMMON_55D_COLLECTATRON
Definition spell_quest.cpp:1133
@ SPELL_SUMMON_SCAVENGEBOT_005B6
Definition spell_quest.cpp:1132
@ NPC_SCAVENGEBOT_004A8
Definition spell_quest.cpp:1135
@ NPC_SCAVENGEBOT_005B6
Definition spell_quest.cpp:1138
@ NPC_SENTRYBOT_57K
Definition spell_quest.cpp:1136
@ SPELL_SUMMON_DEFENDOTANK_66D
Definition spell_quest.cpp:1131
@ SPELL_ROBOT_KILL_CREDIT
Definition spell_quest.cpp:1134
@ NPC_55D_COLLECTATRON
Definition spell_quest.cpp:1139