fix specialize faces on regular cards

This commit is contained in:
tool4EvEr
2023-09-01 12:19:42 +02:00
parent 08c258de51
commit 11c64a6216
3 changed files with 9 additions and 1 deletions

View File

@@ -395,6 +395,11 @@ public final class CardRules implements ICardCharacteristics {
this.curFace = 0;
this.faces[0] = null;
this.faces[1] = null;
this.faces[2] = null;
this.faces[3] = null;
this.faces[4] = null;
this.faces[5] = null;
this.faces[6] = null;
this.handLife = null;
this.altMode = CardSplitType.None;

View File

@@ -38,6 +38,9 @@ public abstract class TokenEffectBase extends SpellAbilityEffect {
protected TokenCreateTable createTokenTable(Iterable<Player> players, String[] tokenScripts, final int finalAmount, final SpellAbility sa) {
TokenCreateTable tokenTable = new TokenCreateTable();
for (final Player owner : players) {
if (!owner.isInGame()) {
continue;
}
for (String script : tokenScripts) {
final Card result = TokenInfo.getProtoType(script, sa, owner);

View File

@@ -6377,7 +6377,7 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
}
public final boolean canBeControlledBy(final Player newController) {
return !(hasKeyword("Other players can't gain control of CARDNAME.") && !getController().equals(newController));
return newController.isInGame() && !(hasKeyword("Other players can't gain control of CARDNAME.") && !getController().equals(newController));
}
@Override