◆ HandleDummy()
void spell_q11587_arcane_prisoner_rescue::HandleDummy |
( |
SpellEffIndex |
| ) |
|
|
inlineprivate |
1076 {
1079 {
1081 if (rand() % 2)
1083 caster->
CastSpell(caster, spellId,
true);
1085 }
1086 }
std::uint32_t uint32
Definition Define.h:107
Unit * GetHitUnit()
Definition SpellScript.cpp:448
Unit * GetCaster()
Definition SpellScript.cpp:401
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_ARCANE_PRISONER_KILL_CREDIT
Definition spell_quest.cpp:1058
@ SPELL_SUMMON_ARCANE_PRISONER_FEMALE
Definition spell_quest.cpp:1057
@ SPELL_SUMMON_ARCANE_PRISONER_MALE
Definition spell_quest.cpp:1056
References Unit::CastSpell(), SpellScript::GetCaster(), SpellScript::GetHitUnit(), SPELL_ARCANE_PRISONER_KILL_CREDIT, SPELL_SUMMON_ARCANE_PRISONER_FEMALE, and SPELL_SUMMON_ARCANE_PRISONER_MALE.
Referenced by Register().
◆ PrepareSpellScript()
◆ Register()
void spell_q11587_arcane_prisoner_rescue::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ Validate()
bool spell_q11587_arcane_prisoner_rescue::Validate |
( |
SpellInfo const * |
| ) |
|
|
inlineoverrideprivatevirtual |
The documentation for this class was generated from the following file: