Practical improvement for Drought

The caster now can cancel the payment at the "Sacrifice a swamp" phase
This commit is contained in:
L_J 2018-03-25 10:56:43 +00:00 committed by GitHub
parent e7546b9e33
commit 9e813935db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,7 +101,9 @@ class DroughtAdditionalCostEffect extends CostModificationEffectImpl {
@Override @Override
public boolean apply(Game game, Ability source, Ability abilityToModify) { public boolean apply(Game game, Ability source, Ability abilityToModify) {
int blackSymbols = abilityToModify.getManaCosts().getMana().getBlack(); int blackSymbols = abilityToModify.getManaCosts().getMana().getBlack();
abilityToModify.addCost(new SacrificeTargetCost(new TargetControlledPermanent(blackSymbols, blackSymbols, filter, true))); TargetControlledPermanent target = new TargetControlledPermanent(blackSymbols, blackSymbols, filter, true);
target.setRequired(false);
abilityToModify.addCost(new SacrificeTargetCost(target));
return true; return true;
} }