* Lotus Vale - Fixed a bug that it did not working properly (fixes #3308).

This commit is contained in:
LevelX2 2017-05-06 13:17:52 +02:00
parent afb7de2fbb
commit ee129e2251

View file

@ -56,7 +56,7 @@ public class EnterBattlefieldPayCostOrPutGraveyardEffect extends ReplacementEffe
public EnterBattlefieldPayCostOrPutGraveyardEffect(final EnterBattlefieldPayCostOrPutGraveyardEffect effect) { public EnterBattlefieldPayCostOrPutGraveyardEffect(final EnterBattlefieldPayCostOrPutGraveyardEffect effect) {
super(effect); super(effect);
this.cost = effect.cost; this.cost = effect.cost.copy();
} }
@Override @Override
@ -76,7 +76,9 @@ public class EnterBattlefieldPayCostOrPutGraveyardEffect extends ReplacementEffe
if (player != null && cost != null && sourceObject != null) { if (player != null && cost != null && sourceObject != null) {
boolean replace = true; boolean replace = true;
if (cost.canPay(source, source.getSourceId(), player.getId(), game)) { if (cost.canPay(source, source.getSourceId(), player.getId(), game)) {
if (player.chooseUse(outcome, cost.getText() + "? (otherwise " + sourceObject.getLogName() + " is put into graveyard)", source, game)) { if (player.chooseUse(outcome,
cost.getText().substring(0, 1).toUpperCase() + cost.getText().substring(1)
+ "? (otherwise " + sourceObject.getLogName() + " is put into graveyard)", source, game)) {
cost.clearPaid(); cost.clearPaid();
replace = !cost.pay(source, game, source.getSourceId(), source.getControllerId(), false, null); replace = !cost.pay(source, game, source.getSourceId(), source.getControllerId(), false, null);
} }