bobtheuberfish / chiriboga

Implements Netrunner in Javascript against an AI opponent
https://chiriboga.sifnt.net.au/
GNU General Public License v3.0
86 stars 11 forks source link

Whitespace ICE uses credits before Overclock credits #132

Closed alexzhaohong closed 1 year ago

alexzhaohong commented 1 year ago

Issue: Whitespace ICE uses credits before Overclock credits

Scenario: As runner, I played Overclock and ran a server with zero icebreakers and 7 credits + (5 hosted credits). I encountered a Whitespace which auto-fired, reducing me to 4 credits + (5 hosted credits). On the second subroutine _If the Runner has 6c or less, end the _run.,__ the run ended.

Expected Outcome: The first subroutine, The Runner loses 3c, should have reduced me to 7 credits + (1 hosted credits), allowing the run to continue.

Impact: Low. This is a 2-card interaction bug and not something higher priority, such as implementation or new feature development. Both cards are System Gateway cards and I do not think this bug has been reported before. I believe replicating this bug requires someone to face-check into a Whitespace with zero icebreakers.

Log: chiriboga-log-2023-04-04T07_16_42.818Z.txt

bobtheuberfish commented 1 year ago

Thank you for this report and for including the log. This is correct behaviour as per FAQ here: https://netrunnerdb.com/en/card/30074 “Losing” credits always drains the Runner’s credit pool.

alexzhaohong commented 1 year ago

Thanks! I should have read the Whitespace and Overclock rulings!