mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Cleanup and FindBugs fixes.
This commit is contained in:
@@ -23,7 +23,6 @@ import java.util.Map;
|
|||||||
|
|
||||||
import forge.Card;
|
import forge.Card;
|
||||||
import forge.Singletons;
|
import forge.Singletons;
|
||||||
import forge.card.cost.Cost;
|
|
||||||
import forge.card.mana.Mana;
|
import forge.card.mana.Mana;
|
||||||
import forge.card.mana.ManaPool;
|
import forge.card.mana.ManaPool;
|
||||||
import forge.card.trigger.TriggerType;
|
import forge.card.trigger.TriggerType;
|
||||||
@@ -55,8 +54,6 @@ public class AbilityManaPart implements java.io.Serializable {
|
|||||||
|
|
||||||
private final transient Card sourceCard;
|
private final transient Card sourceCard;
|
||||||
|
|
||||||
private transient Cost cost;
|
|
||||||
|
|
||||||
// Spells paid with this mana spell can't be countered.
|
// Spells paid with this mana spell can't be countered.
|
||||||
private boolean cannotCounterSpell;
|
private boolean cannotCounterSpell;
|
||||||
|
|
||||||
@@ -408,13 +405,7 @@ public class AbilityManaPart implements java.io.Serializable {
|
|||||||
|
|
||||||
final AbilityManaPart abm = (AbilityManaPart) o;
|
final AbilityManaPart abm = (AbilityManaPart) o;
|
||||||
|
|
||||||
// if (abm.getType() != this.getType()) {
|
return sourceCard.equals(abm.sourceCard) && origProduced.equals(abm.getOrigProduced());
|
||||||
// return false;
|
|
||||||
// }
|
|
||||||
|
|
||||||
return cost.equals(abm.cost) && sourceCard.equals(abm.sourceCard);
|
|
||||||
|
|
||||||
// return abm.toUnsuppressedString().equals(this.toUnsuppressedString());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
|
|||||||
@@ -43,12 +43,12 @@ public class Zone extends MyObservable implements IZone, Observer, java.io.Seria
|
|||||||
private static final long serialVersionUID = -5687652485777639176L;
|
private static final long serialVersionUID = -5687652485777639176L;
|
||||||
|
|
||||||
/** The cards. */
|
/** The cards. */
|
||||||
protected final List<Card> cardList = new ArrayList<Card>();
|
protected transient final List<Card> cardList = new ArrayList<Card>();
|
||||||
protected final List<Card> roCardList;
|
protected transient final List<Card> roCardList;
|
||||||
protected final ZoneType zoneName;
|
protected final ZoneType zoneName;
|
||||||
protected boolean update = true;
|
protected boolean update = true;
|
||||||
|
|
||||||
protected final List<Card> cardsAddedThisTurn = new ArrayList<Card>();
|
protected transient final List<Card> cardsAddedThisTurn = new ArrayList<Card>();
|
||||||
protected final ArrayList<ZoneType> cardsAddedThisTurnSource = new ArrayList<ZoneType>();
|
protected final ArrayList<ZoneType> cardsAddedThisTurnSource = new ArrayList<ZoneType>();
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user