◆ HandleDummy()
| void spell_item_gnomish_universal_remote::HandleDummy |
( |
SpellEffIndex |
| ) |
|
|
inlineprivate |
869 {
871 if (!target)
872 return;
873
876 {
877 case 0:
878 spellId = 8345;
879 break;
880 case 1:
881 spellId = 8346;
882 break;
883 case 2:
884 spellId = 8347;
885 break;
886 }
887 if (spellId)
889 }
std::uint32_t uint32
Definition Define.h:107
uint32 urand(uint32 min, uint32 max)
Definition Random.cpp:44
Unit * GetHitUnit()
Definition SpellScript.cpp:453
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:1372
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: