◆ HandleDummy()
| void spell_item_gnomish_universal_remote::HandleDummy |
( |
SpellEffIndex |
| ) |
|
|
inlineprivate |
878 {
880 if (!target)
881 return;
882
885 {
886 case 0:
887 spellId = 8345;
888 break;
889 case 1:
890 spellId = 8346;
891 break;
892 case 2:
893 spellId = 8347;
894 break;
895 }
896 if (spellId)
898 }
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:1378
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: