Added comments that need to be addressed for card draw.

This commit is contained in:
Alex Vasile 2022-07-31 22:50:00 -04:00
parent 2f0d31e734
commit cbbfe5906a
2 changed files with 3 additions and 0 deletions

View file

@ -51,6 +51,7 @@ public class MageDrawAction extends MageAction {
int numDrawn = 0;
int score = 0;
GameEvent event = new DrawCardsEvent(this.player.getId(), source, this.originalDrawEvent, this.amount);
// TODO: This needs a better description of how it works. Why "amount < 2"?
if (amount < 2 || !game.replaceEvent(event)) {
amount = event.getAmount();
for (int i = 0; i < amount; i++) {