2001 {
2003 {
2006 if (roll < 2)
2008 else if (roll < 4)
2010
2012 }
2013 }
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:44
std::uint32_t uint32
Definition: Define.h:107
@ SPELL_NET_O_MATIC_TRIGGERED2
Definition: spell_item.cpp:1982
@ SPELL_NET_O_MATIC_TRIGGERED1
Definition: spell_item.cpp:1981
@ SPELL_NET_O_MATIC_TRIGGERED3
Definition: spell_item.cpp:1983
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
Unit * GetHitUnit()
Definition: SpellScript.cpp:448
Unit * GetCaster()
Definition: SpellScript.cpp:401