Skip to content

Commit d609888

Browse files
authored
Merge pull request #765 from InvalidOS/patch-3
Fix Abstract Card end of round crash
2 parents 8021898 + d72872b commit d609888

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

items/misc.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2564,10 +2564,12 @@ return {
25642564
if self.config.center_key == "m_cry_abstract" and not self.ability.extra.marked then
25652565
if
25662566
SMODS.pseudorandom_probability(
2567-
card,
2567+
self,
25682568
"cry_abstract_destroy2",
25692569
1,
2570-
card and card.ability and card.ability.extra and card.ability.extra.odds_after_round or 4,
2570+
self.ability and self.ability.extra and self.ability.extra.odds_after_round
2571+
or self.config.extra.odds_after_round
2572+
or 4,
25712573
"Abstract Card"
25722574
)
25732575
then

0 commit comments

Comments
 (0)