Fixed a bug that x spells that need black mana to pay for x (e.g. Consume Spirit) could be paid with all kind of mana.

This commit is contained in:
LevelX2 2013-06-06 17:37:49 +02:00
parent 726a0b8a94
commit 5c479eb919
12 changed files with 184 additions and 22 deletions

View file

@ -129,10 +129,23 @@ class BurnAtTheStakeCost extends CostImpl<BurnAtTheStakeCost> implements Variabl
return this.amountPaid;
}
/**
* Not Supported
* @param filter
*/
@Override
public void setFilter(FilterMana filter) {
}
/**
* Not supported
* @return
*/
@Override
public FilterMana getFilter() {
return new FilterMana();
}
@Override
public void setAmount(int amount) {
this.amountPaid = amount;

View file

@ -120,10 +120,23 @@ class HarvestPyreCost extends CostImpl<HarvestPyreCost> implements VariableCost
return amountPaid;
}
/**
* Not Supported
* @param filter
*/
@Override
public void setFilter(FilterMana filter) {
}
/**
* Not supported
* @return
*/
@Override
public FilterMana getFilter() {
return new FilterMana();
}
@Override
public HarvestPyreCost copy() {
return new HarvestPyreCost(this);

View file

@ -121,10 +121,23 @@ class ExileXFromGraveyardCost extends CostImpl<ExileXFromGraveyardCost> implemen
return amountPaid;
}
/**
* Not Supported
* @param filter
*/
@Override
public void setFilter(FilterMana filter) {
}
/**
* Not supported
* @return
*/
@Override
public FilterMana getFilter() {
return new FilterMana();
}
@Override
public ExileXFromGraveyardCost copy() {
return new ExileXFromGraveyardCost(this);

View file

@ -117,10 +117,23 @@ class DevastatingSummonsCost extends CostImpl<DevastatingSummonsCost> implements
return amountPaid;
}
/**
* Not Supported
* @param filter
*/
@Override
public void setFilter(FilterMana filter) {
}
/**
* Not supported
* @return
*/
@Override
public FilterMana getFilter() {
return new FilterMana();
}
@Override
public DevastatingSummonsCost copy() {
return new DevastatingSummonsCost(this);

View file

@ -166,10 +166,23 @@ class FirestormCost extends CostImpl<FirestormCost> implements VariableCost {
return amountPaid;
}
/**
* Not Supported
* @param filter
*/
@Override
public void setFilter(FilterMana filter) {
}
/**
* Not supported
* @return
*/
@Override
public FilterMana getFilter() {
return new FilterMana();
}
@Override
public FirestormCost copy() {
return new FirestormCost(this);