2264 {
2266 return;
2267
2269
2271 switch (
urand(0, 3))
2272 {
2273 case 0:
2275 break;
2276 case 1:
2278 break;
2279 case 2:
2281 break;
2282 case 3:
2285 else
2287 break;
2288 }
2289
2290 caster->
CastSpell(caster, spellId,
true);
2291 }
std::uint32_t uint32
Definition Define.h:107
uint32 urand(uint32 min, uint32 max)
Definition Random.cpp:44
bool roll_chance_i(int chance)
Definition Random.h:63
@ TEAM_ALLIANCE
Definition SharedDefines.h:771
Player * ToPlayer()
Definition Object.h:202
TeamId GetTeamId(bool original=false) const
Definition Player.h:2108
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_TRANSFORM_ALLIANCE
Definition spell_item.cpp:2249
@ SPELL_SOUL_SPLIT_EVIL
Definition spell_item.cpp:2250
@ SPELL_TRANSFORM_HORDE
Definition spell_item.cpp:2248
@ SPELL_TRANSPORTER_MALFUNCTION
Definition spell_item.cpp:2247
@ SPELL_SOUL_SPLIT_GOOD
Definition spell_item.cpp:2251