Skip to content

Commit 87bc568

Browse files
committed
fix card back crash
1 parent 8a0d301 commit 87bc568

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/hooks.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,7 +1828,7 @@ function Card:set_ability(center, initial, delay_sprites)
18281828
matref(self, center, initial, delay_sprites)
18291829
else
18301830
if self.config and self.config.center and Entropy.FlipsideInversions and not Entropy.is_inverted(center)
1831-
and pseudorandom("marked") < 0.10 and G.GAME.Marked and G.STATE == G.STATES.SHOP and (not self.area or not self.area.config.collection) then
1831+
and pseudorandom("marked") < 0.10 and G.GAME.Marked and G.STATE == G.STATES.SHOP and (not self.area or not self.area.config.collection) and Entropy.Inversion(center) then
18321832
matref(self, G.P_CENTERS[Entropy.Inversion(center)], initial, delay_sprites)
18331833
elseif self.config and self.config.center
18341834
and pseudorandom("trump_card") < 0.10 and G.GAME.TrumpCard and G.STATE == G.STATES.SMODS_BOOSTER_OPENED
@@ -3780,4 +3780,4 @@ function Card:sell_card()
37803780
end
37813781
end
37823782
sell_card_stuff(self)
3783-
end
3783+
end

0 commit comments

Comments
 (0)