1162 {
1166 {
1168 switch (target->GetEntry())
1169 {
1172 break;
1175 break;
1178 break;
1181 break;
1184 break;
1185 default:
1186 return;
1187 }
1188 caster->
CastSpell(caster, spellId,
true, castItem);
1190 target->DespawnOrUnsummon();
1191 }
1192 }
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:1350
@ SPELL_SUMMON_SENTRYBOT_57K
Definition spell_quest.cpp:1127
@ SPELL_SUMMON_SCAVENGEBOT_004A8
Definition spell_quest.cpp:1126
@ NPC_DEFENDOTANK_66D
Definition spell_quest.cpp:1134
@ SPELL_SUMMON_55D_COLLECTATRON
Definition spell_quest.cpp:1130
@ SPELL_SUMMON_SCAVENGEBOT_005B6
Definition spell_quest.cpp:1129
@ NPC_SCAVENGEBOT_004A8
Definition spell_quest.cpp:1132
@ NPC_SCAVENGEBOT_005B6
Definition spell_quest.cpp:1135
@ NPC_SENTRYBOT_57K
Definition spell_quest.cpp:1133
@ SPELL_SUMMON_DEFENDOTANK_66D
Definition spell_quest.cpp:1128
@ SPELL_ROBOT_KILL_CREDIT
Definition spell_quest.cpp:1131
@ NPC_55D_COLLECTATRON
Definition spell_quest.cpp:1136