Player: first step for Ashiok

This commit is contained in:
Hans Mackowiak
2023-09-13 07:29:12 +02:00
committed by Chris H
parent 461cc96800
commit 1f11bf53b5

View File

@@ -625,6 +625,13 @@ public class Player extends GameEntity implements Comparable<Player> {
return false; return false;
} }
// Ashiok Exile instead of paying life
if (hasKeyword("Exile library instead of pay life") && lifePayment <= getZone(ZoneType.Library).size()) {
// TODO is cause always set or not? if not then the ChangeZoneTable needs to trigger differently?
getGame().getAction().exile(getTopXCardsFromLibrary(lifePayment), cause);
return true;
}
final int lost = loseLife(lifePayment, false, false); final int lost = loseLife(lifePayment, false, false);
cause.setPaidLife(lifePayment); cause.setPaidLife(lifePayment);