Skip to content

Commit e416cd1

Browse files
authored
Fix staff runes showing on quarterstaves (#2218)
* Fix staff runes being listed on quarter/warstaves * Correctly use quarterstaff for runes instead of warstaff
1 parent 6295cc2 commit e416cd1

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

spec/System/TestSocketables_spec.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ describe("TestSocketables", function()
8787

8888
it("'(Caster) Staff' runes appear in Items tab", slotTypeTest("staff", "Voltaic Staff"))
8989

90-
it("'(Quarterstaff) War Staff' runes appear in Items tab", slotTypeTest("warstaff", "Striking Quarterstaff"))
90+
it("'Quarterstaff' runes appear in Items tab", slotTypeTest("quarterstaff", "Striking Quarterstaff"))
9191

9292
it("'Spear' runes appear in Items tab", slotTypeTest("spear", "Flying Spear"))
9393

src/Classes/Item.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,7 @@ function ItemClass:UpdateRunes()
15661566
local itemType = self.base.type:lower()
15671567
local baseType = self.base.weapon and "weapon" or self.base.armour and "armour" or (self.base.tags.wand or self.base.tags.staff or self.base.tags.sceptre) and "caster"
15681568
local specificType =
1569-
(subType == "warstaff" and "warstaff") or
1569+
(subType == "warstaff" and "quarterstaff") or
15701570
(itemType == "shield" and subType == "evasion" and "buckler") or
15711571
itemType
15721572
local gatheredMods = getModRunesForTypes(name, baseType, specificType)

src/Classes/ItemsTab.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1942,7 +1942,7 @@ function ItemsTabClass:GetValidRunesForItem(item)
19421942
local function isRuneValidForSlot(runeSlot)
19431943
if runeSlot == "None" then
19441944
return true
1945-
elseif runeSlot == "warstaff" then
1945+
elseif runeSlot == "quarterstaff" then
19461946
return subType == "warstaff"
19471947
elseif runeSlot == "buckler" then
19481948
return itemType == "shield" and subType == "evasion"
@@ -1953,7 +1953,7 @@ function ItemsTabClass:GetValidRunesForItem(item)
19531953
elseif runeSlot == "caster" then
19541954
return item.base.tags.wand or item.base.tags.staff or item.base.tags.sceptre
19551955
else
1956-
return itemType == runeSlot
1956+
return itemType == runeSlot and not (subType == "warstaff")
19571957
end
19581958
end
19591959
if isRuneValidForSlot(rune.slot) then

src/Data/ModRunes.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3300,7 +3300,7 @@ return {
33003300
tradeHashes = { [103706408] = { "Rolls only the minimum or maximum Damage value for Physical Damage" }, },
33013301
rank = { 15 },
33023302
},
3303-
["warstaff"] = {
3303+
["quarterstaff"] = {
33043304
type = "Rune",
33053305
"Rolls only the minimum or maximum Damage value for Physical Damage",
33063306
"Bonded: 20% increased Bleeding Duration",
@@ -3475,7 +3475,7 @@ return {
34753475
},
34763476
},
34773477
["Rune of Confrontation"] = {
3478-
["warstaff"] = {
3478+
["quarterstaff"] = {
34793479
type = "Rune",
34803480
"Gain 4 Rage on Melee Hit",
34813481
"-10 to Maximum Rage",

src/Export/Scripts/soulcores.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ classMap = {
1010
["Armour"] = { "armour" },
1111
["Wand or Staff"] = { "wand", "staff" },
1212
["Maces or Talisman"] = { "one hand mace", "two hand mace", "talisman" },
13-
["One Hand Mace or Quarterstaff"] = { "one hand mace", "warstaff" },
13+
["One Hand Mace or Quarterstaff"] = { "one hand mace", "quarterstaff" },
1414
["Shield or Buckler"] = { "shield", "buckler" },
1515
["All"] = { "weapon", "armour", "caster" },
16-
["Quarterstaff or Spear"] = { "warstaff", "spear" },
16+
["Quarterstaff or Spear"] = { "quarterstaff", "spear" },
1717
["Crossbow Bow or Spear"] = { "crossbow", "bow", "spear" },
1818
}
1919

0 commit comments

Comments
 (0)