mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
Checkstyle fixes
This commit is contained in:
@@ -1721,40 +1721,38 @@ public abstract class AbstractCardFactory implements CardFactoryInterface {
|
||||
card.switchStates("Original", "Cloner");
|
||||
card.setState("Original");
|
||||
|
||||
if(copyTarget[0].getCurState().equals("Transformed") && copyTarget[0].isDoubleFaced()) {
|
||||
if (copyTarget[0].getCurState().equals("Transformed") && copyTarget[0].isDoubleFaced()) {
|
||||
cloned.setState("Transformed");
|
||||
}
|
||||
|
||||
CardFactoryUtil.copyCharacteristics(cloned,card);
|
||||
CardFactoryUtil.copyCharacteristics(cloned, card);
|
||||
this.grantExtras();
|
||||
|
||||
|
||||
//If target is a flipped card, also copy the flipped state.
|
||||
if(copyTarget[0].isFlip()) {
|
||||
// If target is a flipped card, also copy the flipped
|
||||
// state.
|
||||
if (copyTarget[0].isFlip()) {
|
||||
cloned.setState("Flipped");
|
||||
cloned.setImageFilename(CardUtil.buildFilename(cloned));
|
||||
card.addAlternateState("Flipped");
|
||||
card.setState("Flipped");
|
||||
CardFactoryUtil.copyCharacteristics(cloned,card);
|
||||
CardFactoryUtil.copyCharacteristics(cloned, card);
|
||||
this.grantExtras();
|
||||
|
||||
card.setFlip(true);
|
||||
|
||||
card.setState("Original");
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
card.setFlip(false);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
AllZone.getGameAction().moveToPlay(card);
|
||||
}
|
||||
|
||||
private void grantExtras() {
|
||||
//Grant stuff from specific cloners
|
||||
if(cardName.equals("Copy Artifact")) {
|
||||
// Grant stuff from specific cloners
|
||||
if (cardName.equals("Copy Artifact")) {
|
||||
card.addType("Enchantment");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user