Skip to content

Commit

Permalink
fix: card doesnt trigger in hand. red sea fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
AxBolduc committed Mar 4, 2024
1 parent 8e30511 commit a207992
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions GreenSeal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ local calculate_seal_ref = Card.calculate_seal
function Card:calculate_seal(context)
local fromRef = calculate_seal_ref(self, context)

if context.scoring_hand and not context.repetition_only then
if context.cardarea == G.play and not context.repetition_only then
if self.seal == 'Green' then
return {
x_mult = 0.75
Expand Down Expand Up @@ -82,7 +82,7 @@ local eval_card_ref = eval_card
function eval_card(card, context)
local fromRef = eval_card_ref(card, context)

if context.scoring_hand then
if context.scoring_hand and not context.repetition_only then
local seal = card:calculate_seal(context)
if seal then
fromRef.x_mult = (fromRef.x_mult or 1) * seal.x_mult
Expand Down Expand Up @@ -271,6 +271,11 @@ function Controller:key_press_update(key, dt)
_card:set_seal('Green', true, true)
end
end
if key == 'w' then
if (_card.playing_card or _card.area) then
_card:set_seal('Red', true, true)
end
end
end
end
end
Expand Down

0 comments on commit a207992

Please sign in to comment.