◆ HandleDummy()
void spell_item_gnomish_universal_remote::HandleDummy |
( |
SpellEffIndex |
| ) |
|
|
inlineprivate |
658 {
660 if (!target)
661 return;
662
665 {
666 case 0:
667 spellId = 8345;
668 break;
669 case 1:
670 spellId = 8346;
671 break;
672 case 2:
673 spellId = 8347;
674 break;
675 }
676 if (spellId)
678 }
std::uint32_t uint32
Definition Define.h:107
uint32 urand(uint32 min, uint32 max)
Definition Random.cpp:44
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:1179
References Unit::CastSpell(), SpellScript::GetCaster(), SpellScript::GetHitUnit(), and urand().
Referenced by Register().
◆ PrepareSpellScript()
◆ Register()
void spell_item_gnomish_universal_remote::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
The documentation for this class was generated from the following file: