◆ HandleDummy()
| void spell_item_savory_deviate_delight::HandleDummy |
( |
SpellEffIndex |
| ) |
|
|
inlineprivate |
2301 {
2304 switch (
urand(1, 2))
2305 {
2306
2307 case 1:
2309 break;
2310
2311 case 2:
2313 break;
2314 }
2315 caster->
CastSpell(caster, spellId,
true,
nullptr);
2316 }
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:848
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:1375
@ SPELL_FLIP_OUT_FEMALE
Definition spell_item.cpp:2278
@ SPELL_FLIP_OUT_MALE
Definition spell_item.cpp:2277
@ SPELL_YAAARRRR_FEMALE
Definition spell_item.cpp:2280
@ SPELL_YAAARRRR_MALE
Definition spell_item.cpp:2279
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: