Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Commit 1f8dd81

Browse files
committed
fix for mounts not getting desaturated when unusable
1 parent 301702e commit 1f8dd81

2 files changed

Lines changed: 1 addition & 20 deletions

File tree

Neuron.lua

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -514,19 +514,6 @@ function Neuron:UpdateSpellCache()
514514

515515
end
516516

517-
--- Creates a table containing provided companion & mount data
518-
-- @param index, creatureType, index, creatureID, creatureName, spellID, icon
519-
-- @return curComp: Table containing provided data
520-
function Neuron:SetCompanionData(creatureType, index, creatureID, creatureName, spellID, icon)
521-
local curComp = {}
522-
curComp.creatureType = creatureType
523-
curComp.index = index
524-
curComp.creatureID = creatureID
525-
curComp.creatureName = creatureName
526-
curComp.spellID = spellID
527-
curComp.icon = icon
528-
return curComp
529-
end
530517

531518
function Neuron:UpdateStanceStrings()
532519
if Neuron.class == "DRUID" or Neuron.class == "ROGUE" then

Objects/BUTTON.lua

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -751,18 +751,12 @@ function BUTTON:UpdateUsableSpell()
751751
else
752752
self.elements.IconFrameIcon:SetVertexColor(1.0, 1.0, 1.0)
753753
end
754-
755754
else
756-
if NeuronSpellCache[(self.spell):lower()] then
757-
self.elements.IconFrameIcon:SetVertexColor(0.4, 0.4, 0.4)
758-
else
759-
self.elements.IconFrameIcon:SetVertexColor(1.0, 1.0, 1.0)
760-
end
755+
self.elements.IconFrameIcon:SetVertexColor(0.4, 0.4, 0.4)
761756
end
762757
end
763758

764759
function BUTTON:UpdateUsableItem()
765-
766760
local isUsable, notEnoughMana = IsUsableItem(self.item)
767761

768762
--for some reason toys don't show as usable items, so this is a workaround for that

0 commit comments

Comments
 (0)