mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
removed unused / bad code + fixed implementations of new tokens
This commit is contained in:
parent
813c67e657
commit
12becca27d
3 changed files with 7 additions and 34 deletions
|
|
@ -91,19 +91,6 @@ public abstract class Token extends MageObjectImpl {
|
|||
this.toughness.modifyBaseValue(toughness);
|
||||
}
|
||||
|
||||
public Token(String name, String description, ObjectColor color, SubTypeList subtype, int power, int toughness, Abilities<Ability> abilities) {
|
||||
this(name, description);
|
||||
this.cardType.add(CardType.CREATURE);
|
||||
this.color = color.copy();
|
||||
this.subtype = subtype;
|
||||
this.power.modifyBaseValue(power);
|
||||
this.toughness.modifyBaseValue(toughness);
|
||||
if (abilities != null) {
|
||||
this.abilities = abilities.copy();
|
||||
}
|
||||
this.expansionSetCodeChecked = false;
|
||||
}
|
||||
|
||||
public Token(final Token token) {
|
||||
super(token);
|
||||
this.description = token.description;
|
||||
|
|
@ -118,6 +105,9 @@ public abstract class Token extends MageObjectImpl {
|
|||
this.isAllCreatureTypes = token.isAllCreatureTypes;
|
||||
}
|
||||
|
||||
@Override
|
||||
public abstract Token copy();
|
||||
|
||||
private void setTokenDescriptor() {
|
||||
this.tokenDescriptor = tokenDescriptor();
|
||||
}
|
||||
|
|
@ -157,23 +147,6 @@ public abstract class Token extends MageObjectImpl {
|
|||
abilities.add(ability);
|
||||
}
|
||||
|
||||
//@Override
|
||||
//public abstract Token copy();
|
||||
/*{
|
||||
return new Token(this);
|
||||
}*/
|
||||
|
||||
@Override
|
||||
public abstract Token copy();
|
||||
|
||||
// public Token copy() {
|
||||
// try{
|
||||
// return this.getClass().getConstructor(this.getClass()).newInstance(this);
|
||||
// } catch( Exception e) {
|
||||
//
|
||||
// }
|
||||
// }
|
||||
|
||||
public boolean putOntoBattlefield(int amount, Game game, UUID sourceId, UUID controllerId) {
|
||||
return this.putOntoBattlefield(amount, game, sourceId, controllerId, false, false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue