Quantcast

Seal of tempered fate are not limited

Alar of Daggerspine [09-07-15 - 12:30]
Seal of tempered fate are not limited

Signed-off-by: Alar of Daggerspine <alar@aspide.it>
Filename
CHANGELOG.txt
MissionCompletion.lua
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 54d4d46..b6d521f 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,5 +1,8 @@
 *GarrisonCommander helps you when choosing the right follower for the right mission*

+* *2.7.5*
+Fix: Seal of Tempered Fate were marked as a limited resource. Turned out they are not
+
 * *2.7.4*
 Fix: Removed chat spam

diff --git a/MissionCompletion.lua b/MissionCompletion.lua
index 7dabb4b..319cad8 100644
--- a/MissionCompletion.lua
+++ b/MissionCompletion.lua
@@ -8,7 +8,7 @@ local GSF=GSF
 local GMFMissions=GarrisonMissionFrameMissions
 local GSFMissions=GarrisonMissionFrameMissions
 local GARRISON_CURRENCY=GARRISON_CURRENCY
-local GARRISON_SHIP_OIL_CURRENCY=_G.GARRISON_SHIP_OIL_CURRENCY or 0
+local GARRISON_SHIP_OIL_CURRENCY=_G.GARRISON_SHIP_OIL_CURRENCY
 local SEAL_CURRENCY=994
 local LE_FOLLOWER_TYPE_GARRISON_6_0=_G.LE_FOLLOWER_TYPE_GARRISON_6_0
 local LE_FOLLOWER_TYPE_SHIPYARD_6_2=_G.LE_FOLLOWER_TYPE_SHIPYARD_6_2
@@ -43,8 +43,7 @@ end
 --@end-debug@
 local cappedCurrencies={
 	GARRISON_CURRENCY,
-	GARRISON_SHIP_OIL_CURRENCY,
-	SEAL_CURRENCY
+	GARRISON_SHIP_OIL_CURRENCY
 }

 local missions={}
@@ -129,7 +128,6 @@ function module:MissionComplete(this,button,skiprescheck)
 			for k,v in pairs(missions[i].rewards) do
 				if v.itemID then GetItemInfo(v.itemID) end -- tickling server
 				if v.currencyID and tContains(cappedCurrencies,v.currencyID) then
-					local currentQT=select(2,GetCurrencyInfo(v.currencyID))
 					wasted[v.currencyID]=(wasted[v.currencyID] or 0) + v.quantity
 				end
 			end