Skip to content

Commit

Permalink
Gems aren't upgrades #notallgems
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisSpomer committed May 5, 2024
1 parent c0d7159 commit 647652c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Pawn.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3487,7 +3487,7 @@ function PawnIsItemAnUpgrade(Item, DoNotRescan)
local CompareUsingItemLevelOnly = (Item.Rarity == 6)
local InvType = Item.InvType
if not InvType or InvType == "" or InvType == "INVTYPE_BAG" or InvType == "INVTYPE_QUIVER" or InvType == "INVTYPE_TABARD" or InvType == "INVTYPE_BODY" or ((not VgerCore.RangedSlotExists) and (InvType == "INVTYPE_THROWN" or InvType == "INVTYPE_AMMO" or InvType == "INVTYPE_RELIC")) then return nil end
local SkipScoreBasedUpgrades = InvType == "INVTYPE_TRINKET"
local SkipScoreBasedUpgrades = InvType == "INVTYPE_TRINKET" or PawnGetSlotsForItemType(InvType) == nil
local UnenchantedItemLink, NeedsEnhancements = PawnUnenchantItemLink(Item.Link, true)
VgerCore.Assert(UnenchantedItemLink ~= nil, "PawnIsItemAnUpgrade failed to get an item link for item " .. tostring(Item.ID))

Expand Down
1 change: 1 addition & 0 deletions Readme.htm
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ <h3>Version 2.9.1</h3>
<li>Cataclysm Classic: Pawn will now recommend the proper gems based on the new colors and stats of existing gems.</li>
<li>Cataclysm Classic: Fixed a bug that caused a few stat weights to get reset to 0 when editing in the Weights tab and then reloading.</li>
<li>Cataclysm Classic: Added support for all of the new Cataclysm gems, which Pawn will start recommending as you get Cataclysm gear.</li>
<li>Fixed a bug that caused gems to always appear as upgrades.</li>
</ul>
<h3>Version 2.9.0</h3>
<ul>
Expand Down

0 comments on commit 647652c

Please sign in to comment.