Skip to content

Commit

Permalink
Merge pull request #117 from pyrrhicPachyderm/beta
Browse files Browse the repository at this point in the history
Have Scotland's InvaderDeckSetup() respect special stage 2 cards.
  • Loading branch information
iakona authored Sep 1, 2023
2 parents 9fe9dec + d61fee4 commit 8e3ddeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion objects/37a592/script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ end

function InvaderDeckSetup(params)
if params.level >= 2 then
local invaderCards = Global.getTable("invaderCards")
local stageIICount = 0
for i=1,#params.deck do
if params.deck[i] == 2 then
if params.deck[i] == 2 or (invaderCards[params.deck[i]] and invaderCards[params.deck[i]].stage == 2) then
stageIICount = stageIICount + 1
if stageIICount == 3 then
params.deck[i] = "C"
Expand Down

0 comments on commit 8e3ddeb

Please sign in to comment.