◆ HandleDummy()
void spell_item_savory_deviate_delight::HandleDummy |
( |
SpellEffIndex |
| ) |
|
|
inlineprivate |
2118 {
2121 switch (
urand(1, 2))
2122 {
2123
2124 case 1:
2126 break;
2127
2128 case 2:
2130 break;
2131 }
2132 caster->
CastSpell(caster, spellId,
true,
nullptr);
2133 }
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:814
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:1178
@ SPELL_FLIP_OUT_FEMALE
Definition spell_item.cpp:2095
@ SPELL_FLIP_OUT_MALE
Definition spell_item.cpp:2094
@ SPELL_YAAARRRR_FEMALE
Definition spell_item.cpp:2097
@ SPELL_YAAARRRR_MALE
Definition spell_item.cpp:2096
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: