mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
fix specialize faces on regular cards
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user