◆ HandleDummy()
void spell_item_savory_deviate_delight::HandleDummy |
( |
SpellEffIndex |
| ) |
|
|
inlineprivate |
2119 {
2122 switch (
urand(1, 2))
2123 {
2124
2125 case 1:
2127 break;
2128
2129 case 2:
2131 break;
2132 }
2133 caster->
CastSpell(caster, spellId,
true,
nullptr);
2134 }
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:798
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:1179
@ SPELL_FLIP_OUT_FEMALE
Definition spell_item.cpp:2096
@ SPELL_FLIP_OUT_MALE
Definition spell_item.cpp:2095
@ SPELL_YAAARRRR_FEMALE
Definition spell_item.cpp:2098
@ SPELL_YAAARRRR_MALE
Definition spell_item.cpp:2097
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: