1
0
Bifurcation 0

Fixes PickupSpell for PVP talent "Gladiator's Medallion" (WM on only).

Cette révision appartient à :
dvipid 2018-12-25 10:08:42 -05:00
Parent 605204b497
révision 5d011c41e7
2 fichiers modifiés avec 6 ajouts et 2 suppressions

Voir le fichier

@ -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;

Voir le fichier

@ -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