Quantcast

Blocked mission in shipyard have now a black border

Alar of Daggerspine [10-30-15 - 21:12]
Blocked mission in shipyard have now a black border

Signed-off-by: Alar of Daggerspine <alar@aspide.it>
Filename
ShipYard.lua
diff --git a/ShipYard.lua b/ShipYard.lua
index 2abdd03..6474ebe 100644
--- a/ShipYard.lua
+++ b/ShipYard.lua
@@ -116,6 +116,10 @@ function module:HookedGarrisonShipyardMap_SetupBonus(missionList,frame,mission)
 	addendum.chance:SetTextColor(self:GetDifficultyColors(perc))
 	local cost=mission.cost
 	local currency=mission.costCurrencyTypesID
+	if not mission.canStart then
+		addendum:SetBackdropBorderColor(0,0,0)
+		return
+	end
 	if cost and currency then
 		local _,available=GetCurrencyInfo(currency)
 		if cost>available then