◆ HandleDummy()
void spell_item_gnomish_universal_remote::HandleDummy |
( |
SpellEffIndex |
| ) |
|
|
inlineprivate |
657 {
659 if (!target)
660 return;
661
664 {
665 case 0:
666 spellId = 8345;
667 break;
668 case 1:
669 spellId = 8346;
670 break;
671 case 2:
672 spellId = 8347;
673 break;
674 }
675 if (spellId)
677 }
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:1178
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: