Skip to content

Commit

Permalink
fix: spell dragging to icons (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
ascott18 committed Jul 25, 2024
1 parent 7185a9b commit 9c413ab
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v11.0.2
* Fix spell dragging to icons (again)

## v11.0.1
* Fix: #2174 - Autocast conditions not working
* Fix: #2176, #2177, #2175, Many spells not tracking cooldowns properly
Expand Down
2 changes: 1 addition & 1 deletion Components/Core/IconType.lua
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function IconType:DragReceived(icon, t, data, subType, param4)
return
end

local baseSpellName = GetSpellName(spellData.actionId)
local baseSpellName = GetSpellName(spellData.actionID)

input = baseSpellName or spellData.name
end
Expand Down
2 changes: 1 addition & 1 deletion Components/Core/Utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,7 @@ else
-- itemType is for forward compat
itemType = type == "SPELL" and 1 or -1,
typeName = type,
actionId = baseSpellID,
actionID = baseSpellID,
name = GetSpellBookItemName(index, book)
}
end
Expand Down
3 changes: 3 additions & 0 deletions Components/IconTypes/IconType_cooldown/cooldown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ local GetRuneCooldownDuration = TMW.GetRuneCooldownDuration

local _, pclass = UnitClass("Player")

-- TODO: Preliminary testing has shown that C_Spell.IsSpellInRange behaves properly
-- with all inputs in wow 11.0+. Once it makes it to all game versions,
-- we can probably remove LibSpellRange.
local IsSpellInRange = LibStub("SpellRange-1.0").IsSpellInRange


Expand Down
2 changes: 1 addition & 1 deletion Components/IconTypes/IconType_default/default.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function Type:DragReceived(icon, t, data, subType, param4)
return
end

local baseSpellName = GetSpellName(spellData.actionId)
local baseSpellName = GetSpellName(spellData.actionID)
input = baseSpellName or spellData.name
end

Expand Down
3 changes: 3 additions & 0 deletions Options/CHANGELOG.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ if not TMW then return end
TMW.CHANGELOG_LASTVER="7.4.0"

TMW.CHANGELOG = [==[
## v11.0.2
* Fix spell dragging to icons (again)
## v11.0.1
* Fix: #2174 - Autocast conditions not working
* Fix: #2176, #2177, #2175, Many spells not tracking cooldowns properly
Expand Down
2 changes: 1 addition & 1 deletion TellMeWhen-Cata.toc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
## X-WoWI-ID: 10855
## X-Wago-ID: ZQ6aZqKW

## Version: 11.0.1
## Version: 11.0.2
## Author: Cybeloras of Aerie Peak
## IconTexture: Interface\Addons\TellMeWhen\Textures\LDB Icon
## AddonCompartmentFunc: TellMeWhen_OnAddonCompartmentClick
Expand Down
2 changes: 1 addition & 1 deletion TellMeWhen-Classic.toc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
## X-WoWI-ID: 10855
## X-Wago-ID: ZQ6aZqKW

## Version: 11.0.1
## Version: 11.0.2
## Author: Cybeloras of Aerie Peak
## IconTexture: Interface\Addons\TellMeWhen\Textures\LDB Icon
## AddonCompartmentFunc: TellMeWhen_OnAddonCompartmentClick
Expand Down
2 changes: 1 addition & 1 deletion TellMeWhen-Wrath.toc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
## X-WoWI-ID: 10855
## X-Wago-ID: ZQ6aZqKW

## Version: 11.0.1
## Version: 11.0.2
## Author: Cybeloras of Aerie Peak
## IconTexture: Interface\Addons\TellMeWhen\Textures\LDB Icon
## AddonCompartmentFunc: TellMeWhen_OnAddonCompartmentClick
Expand Down
2 changes: 1 addition & 1 deletion TellMeWhen.toc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
## X-WoWI-ID: 10855
## X-Wago-ID: ZQ6aZqKW

## Version: 11.0.1
## Version: 11.0.2
## Author: Cybeloras of Aerie Peak
## IconTexture: Interface\Addons\TellMeWhen\Textures\LDB Icon
## AddonCompartmentFunc: TellMeWhen_OnAddonCompartmentClick
Expand Down

0 comments on commit 9c413ab

Please sign in to comment.