2188 {
2190 return;
2191
2193
2195 switch (
urand(0, 3))
2196 {
2197 case 0:
2199 break;
2200 case 1:
2202 break;
2203 case 2:
2205 break;
2206 case 3:
2209 else
2211 break;
2212 }
2213
2214 caster->
CastSpell(caster, spellId,
true);
2215 }
std::uint32_t uint32
Definition: Define.h:108
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:44
bool roll_chance_i(int chance)
Definition: Random.h:59
@ SPELL_TRANSFORM_ALLIANCE
Definition: spell_item.cpp:2173
@ SPELL_SOUL_SPLIT_EVIL
Definition: spell_item.cpp:2174
@ SPELL_TRANSFORM_HORDE
Definition: spell_item.cpp:2172
@ SPELL_TRANSPORTER_MALFUNCTION
Definition: spell_item.cpp:2171
@ SPELL_SOUL_SPLIT_GOOD
Definition: spell_item.cpp:2175
@ TEAM_ALLIANCE
Definition: SharedDefines.h:732
Player * ToPlayer()
Definition: Object.h:195
TeamId GetTeamId(bool original=false) const
Definition: Player.h:2059
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:1169
Unit * GetCaster()
Definition: SpellScript.cpp:401