1177 {
1179 if (!target)
1180 return;
1181
1184 {
1185 case 25369: spellId = 51552; break;
1186 case 25373: spellId = 51551; break;
1187 case 25363: spellId = 51542; break;
1188 case 25357: spellId = 51541; break;
1189 case 25361: spellId = 51537; break;
1190 case 25356: spellId = 51538; break;
1191 case 25372: spellId = 51550; break;
1192 case 25367: spellId = 51549; break;
1193 case 25362: spellId = 51540; break;
1194 case 25359: spellId = 51539; break;
1195 case 25355: spellId = 51534; break;
1196 case 25354: spellId = 51520; break;
1197 case 25360: spellId = 51536; break;
1198 case 25358: spellId = 51535; break;
1199 case 25368: spellId = 51544; break;
1200 case 25364: spellId = 51543; break;
1201 case 25371: spellId = 51548; break;
1202 case 25366: spellId = 51547; break;
1203 case 25370: spellId = 51545; break;
1204 case 25365: spellId = 51546; break;
1205 default: return;
1206 }
1207
1208 target->
CastSpell(target, spellId,
true);
1210 }
std::uint32_t uint32
Definition: Define.h:107
Definition: Creature.h:43
void LoadEquipment(int8 id=1, bool force=false)
Definition: Creature.cpp:1798
uint32 GetDisplayId() const
Definition: Unit.h:1837
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:1167
Creature * GetHitCreature()
Definition: SpellScript.cpp:458