forked from External/mage
refactor: clean up static filters for sacrifice targets (#12120)
* simplify sacrifice target filters, part 1 * minor cleanup * adjust SacrificeXTargetCost * adjust Arctic Merfolk * more cleanup * remove unused * adjust filters not used for sacrifice * fix Hew the Entwood * fix Nahiri's Lithoforming * remove unused * remove another * cleanup more * fix MegatronDestructiveForce * remove next * next batch of replacements * remove next * rename filter to match text * finish removing * use existing static filter
This commit is contained in:
parent
5c9d1cd205
commit
8853e7d875
372 changed files with 489 additions and 712 deletions
|
|
@ -14,7 +14,7 @@ import mage.target.common.TargetSacrifice;
|
|||
*/
|
||||
public class SacrificeXTargetCost extends VariableCostImpl implements SacrificeCost {
|
||||
|
||||
protected final FilterPermanent filter;
|
||||
private final FilterPermanent filter;
|
||||
private final int minValue;
|
||||
|
||||
public SacrificeXTargetCost(FilterPermanent filter) {
|
||||
|
|
@ -29,7 +29,7 @@ public class SacrificeXTargetCost extends VariableCostImpl implements SacrificeC
|
|||
super(useAsAdditionalCost ? VariableCostType.ADDITIONAL : VariableCostType.NORMAL,
|
||||
filter.getMessage() + " to sacrifice");
|
||||
this.text = (useAsAdditionalCost ? "as an additional cost to cast this spell, sacrifice " : "Sacrifice ") + xText + ' ' + filter.getMessage();
|
||||
this.filter = filter;
|
||||
this.filter = TargetSacrifice.makeFilter(filter);
|
||||
this.minValue = minValue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue