mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
Code cleanup
This commit is contained in:
@@ -2981,7 +2981,6 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
this.changeControllerCommandList.add(c);
|
||||
}
|
||||
|
||||
|
||||
public final void runChangeControllerCommands() {
|
||||
for (final Command c : this.changeControllerCommandList) {
|
||||
c.run();
|
||||
@@ -3040,7 +3039,6 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
this.becameTargetThisTurn = becameTargetThisTurn;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return the startedTheTurnUntapped
|
||||
*/
|
||||
@@ -3055,7 +3053,6 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
this.startedTheTurnUntapped = untapped;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Getter for the field <code>owner</code>.
|
||||
@@ -3096,7 +3093,6 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
|
||||
public final void clearTempControllers() {
|
||||
this.tempControllers.clear();
|
||||
|
||||
}
|
||||
|
||||
public final void clearControllers() {
|
||||
@@ -3369,8 +3365,7 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
* @param c
|
||||
* a {@link forge.game.card.Card} object.
|
||||
*/
|
||||
public final void unEquipCard(final Card c) // equipment.unEquipCard(equippedCard);
|
||||
{
|
||||
public final void unEquipCard(final Card c) { // equipment.unEquipCard(equippedCard);
|
||||
this.equipping.remove(c);
|
||||
c.equippedBy.remove(this);
|
||||
|
||||
@@ -3636,7 +3631,6 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
}
|
||||
|
||||
return newType;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -4688,14 +4682,11 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
public final boolean isFortification() { return this.typeContains("Fortification"); }
|
||||
public final boolean isScheme() { return this.typeContains("Scheme"); }
|
||||
|
||||
|
||||
public final boolean isPlaneswalker() { return this.typeContains("Planeswalker"); }
|
||||
|
||||
public final boolean isEnchantment() { return this.typeContains("Enchantment"); }
|
||||
public final boolean isAura() { return this.typeContains("Aura"); }
|
||||
|
||||
|
||||
|
||||
private boolean typeContains(final String s) {
|
||||
final Iterator<String> it = this.getType().iterator();
|
||||
while (it.hasNext()) {
|
||||
@@ -7605,8 +7596,8 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
if (this.isPlaneswalker()) {
|
||||
this.subtractCounter(CounterType.LOYALTY, damageToAdd);
|
||||
damageType = DamageType.LoyaltyLoss;
|
||||
} else {
|
||||
|
||||
}
|
||||
else {
|
||||
final Game game = source.getGame();
|
||||
|
||||
final String s = this + " - destroy";
|
||||
@@ -8607,7 +8598,6 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
*/
|
||||
@Override
|
||||
public Game getGame() {
|
||||
|
||||
Player controller = getController();
|
||||
if (null != controller)
|
||||
return controller.getGame();
|
||||
@@ -8655,7 +8645,6 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
return abilities;
|
||||
}
|
||||
|
||||
|
||||
public static Card fromPaperCard(IPaperCard pc, Player owner) {
|
||||
return CardFactory.getCard(pc, owner);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user