Fixes PickupSpell for PVP talent "Gladiator's Medallion" (WM off only).
Cette révision appartient à :
Parent
605204b497
révision
235920a031
2 fichiers modifiés avec 6 ajouts et 2 suppressions
|
@ -11,6 +11,7 @@ Const.SUMMON_RANDOM_FAVORITE_MOUNT_SPELL = 150544;
|
|||
Const.SUMMON_RANDOM_FAVORITE_MOUNT_ID = 268435455;
|
||||
Const.SUMMON_RANDOM_FAVORITE_BATTLE_PET_ID = "BattlePet-0-FFFFFFFFFFFFFF";
|
||||
Const.SUMMON_RANDOM_FAVORITE_BATTLE_PET_TEXTURE = "Interface/Icons/INV_Pet_Achievement_CaptureAPetFromEachFamily_Battle";
|
||||
Const.PVP_SPELL_GLADIATORS_MEDALLION = 208683;
|
||||
Const.Version = 0.9;
|
||||
Const.VersionMinor = 50;
|
||||
Const.MAX_ACCOUNT_MACROS = 120;
|
||||
|
|
|
@ -1537,8 +1537,11 @@ function Util.SetCursor(Command, Data, Subvalue, Subsubvalue)
|
|||
SpellFlyout:Hide();
|
||||
if (Command == "spell") then
|
||||
local SpellName = GetSpellInfo(Subsubvalue);
|
||||
if ( SpellName ) then
|
||||
PickupSpellBookItem(SpellName)
|
||||
-- For some reason, that PVP spell needs to be called with PickupSpell instead of PickupSpellBookItem
|
||||
if ( Subsubvalue == Const.PVP_SPELL_GLADIATORS_MEDALLION ) then
|
||||
PickupSpell(Subsubvalue);
|
||||
elseif ( SpellName ) then
|
||||
PickupSpellBookItem(SpellName);
|
||||
else
|
||||
PickupSpell(Subsubvalue);
|
||||
end
|
||||
|
|
Référencer dans un nouveau ticket