Fix crash related to Suitable
Signed-off-by: emik <emik.cuber@gmail.com>
This commit is contained in:
parent
8a18b78d2c
commit
a762cff1fe
1 changed files with 2 additions and 1 deletions
|
|
@ -1206,7 +1206,8 @@ end
|
|||
local orig_get_enhancements = SMODS.get_enhancements
|
||||
|
||||
function SMODS.get_enhancements(card, ...)
|
||||
if (G.GAME.modifiers.Roland_suitable or 0) <= 0 or
|
||||
if not card.base or
|
||||
(G.GAME.modifiers.Roland_suitable or 0) <= 0 or
|
||||
card.base.suit ~= G.GAME.current_round.Roland_suitable.suit or
|
||||
(card.area ~= G.hand and card.area ~= G.play) then
|
||||
return orig_get_enhancements(card, ...)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue