◆ HandleDummy()
  
  | 
        
          | void spell_item_savory_deviate_delight::HandleDummy | ( | SpellEffIndex |  | ) |  |  | inlineprivate | 
 
 2159    {
 2162        switch (
urand(1, 2))
 
 2163        {
 2164            
 2165            case 1:
 2167                break;
 2168            
 2169            case 2:
 2171                break;
 2172        }
 2173        caster->
CastSpell(caster, spellId, 
true, 
nullptr);
 
 2174    }
std::uint32_t uint32
Definition Define.h:107
uint32 urand(uint32 min, uint32 max)
Definition Random.cpp:44
@ GENDER_MALE
Definition SharedDefines.h:61
Unit * GetCaster()
Definition SpellScript.cpp:401
uint8 getGender() const
Definition Unit.h:831
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_FLIP_OUT_FEMALE
Definition spell_item.cpp:2136
@ SPELL_FLIP_OUT_MALE
Definition spell_item.cpp:2135
@ SPELL_YAAARRRR_FEMALE
Definition spell_item.cpp:2138
@ SPELL_YAAARRRR_MALE
Definition spell_item.cpp:2137
References Unit::CastSpell(), GENDER_MALE, SpellScript::GetCaster(), Unit::getGender(), SPELL_FLIP_OUT_FEMALE, SPELL_FLIP_OUT_MALE, SPELL_YAAARRRR_FEMALE, SPELL_YAAARRRR_MALE, and urand().
Referenced by Register().
 
 
◆ Load()
  
  | 
        
          | bool spell_item_savory_deviate_delight::Load | ( |  | ) |  |  | inlineoverrideprivatevirtual | 
 
 
◆ PrepareSpellScript()
◆ Register()
  
  | 
        
          | void spell_item_savory_deviate_delight::Register | ( |  | ) |  |  | inlineoverrideprivatevirtual | 
 
 
◆ Validate()
  
  | 
        
          | bool spell_item_savory_deviate_delight::Validate | ( | SpellInfo const * |  | ) |  |  | inlineoverrideprivatevirtual | 
 
 
The documentation for this class was generated from the following file: