mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- If you attempt to Transform a non-permanent while it's in play, instead don't.
This commit is contained in:
@@ -416,6 +416,11 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
return false;
|
||||
}
|
||||
CardStateName destState = oldState == CardStateName.Transformed ? CardStateName.Original : CardStateName.Transformed;
|
||||
|
||||
if (this.isInPlay() && !this.getState(destState).getType().isPermanent()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return changeToState(destState);
|
||||
|
||||
} else if (mode.equals("Flip") && isFlipCard()) {
|
||||
|
||||
Reference in New Issue
Block a user