From a4ec311c4a7f8502426254e78fd54e3cc3eed89a Mon Sep 17 00:00:00 2001 From: Christopher Brown Date: Sun, 22 Oct 2023 12:18:09 +1000 Subject: [PATCH] Fix a bug when gaining powers without playtest powers. 2d72935390009e035f9d9508bbb8810786bf04e1 completely broke gaining powers when playtest powers were disabled. --- script.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script.lua b/script.lua index 22f849fb8..e517b7fae 100644 --- a/script.lua +++ b/script.lua @@ -1850,6 +1850,8 @@ function getPlaytestCount(params) return math.max(1, math.floor(count / 3)) elseif playtestPowers == 2 then return math.max(1, math.floor(count / 2)) + else + return 0 end end function SetupPlaytestPowerDeck(deck, name, option, callback)