2450 {
2452 return;
2453
2455
2457 switch (
urand(0, 3))
2458 {
2459 case 0:
2461 break;
2462 case 1:
2464 break;
2465 case 2:
2467 break;
2468 case 3:
2471 else
2473 break;
2474 }
2475
2476 caster->
CastSpell(caster, spellId,
true);
2477 }
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:748
Player * ToPlayer()
Definition Object.h:208
TeamId GetTeamId(bool original=false) const
Definition Player.h:2139
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:1367
@ SPELL_TRANSFORM_ALLIANCE
Definition spell_item.cpp:2435
@ SPELL_SOUL_SPLIT_EVIL
Definition spell_item.cpp:2436
@ SPELL_TRANSFORM_HORDE
Definition spell_item.cpp:2434
@ SPELL_TRANSPORTER_MALFUNCTION
Definition spell_item.cpp:2433
@ SPELL_SOUL_SPLIT_GOOD
Definition spell_item.cpp:2437