◆ HandleDummy()
| void spell_item_gnomish_universal_remote::HandleDummy |
( |
SpellEffIndex |
| ) |
|
|
inlineprivate |
852 {
854 if (!target)
855 return;
856
859 {
860 case 0:
861 spellId = 8345;
862 break;
863 case 1:
864 spellId = 8346;
865 break;
866 case 2:
867 spellId = 8347;
868 break;
869 }
870 if (spellId)
872 }
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:1389
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: