- Fixed Tribute

This commit is contained in:
swordshine
2014-05-02 12:48:40 +00:00
parent eba7491804
commit 420e804a07

View File

@@ -91,8 +91,6 @@ public class CountersPutEffect extends SpellAbilityEffect {
if (max != -1) { if (max != -1) {
counterAmount = max - tgtCard.getCounters(counterType); counterAmount = max - tgtCard.getCounters(counterType);
} }
final Zone zone = tgtCard.getGame().getZoneOf(tgtCard);
if (zone == null || zone.is(ZoneType.Battlefield) || zone.is(ZoneType.Stack)) {
if (sa.hasParam("Tribute")) { if (sa.hasParam("Tribute")) {
String message = "Do you want to put " + tgtCard.getKeywordMagnitude("Tribute") + " +1/+1 counters on " + tgtCard + " ?"; String message = "Do you want to put " + tgtCard.getKeywordMagnitude("Tribute") + " +1/+1 counters on " + tgtCard + " ?";
Player chooser = activator.getController().chooseSingleEntityForEffect(activator.getOpponents(), sa, "Choose an opponent"); Player chooser = activator.getController().chooseSingleEntityForEffect(activator.getOpponents(), sa, "Choose an opponent");
@@ -102,6 +100,8 @@ public class CountersPutEffect extends SpellAbilityEffect {
continue; continue;
} }
} }
final Zone zone = tgtCard.getGame().getZoneOf(tgtCard);
if (zone == null || zone.is(ZoneType.Battlefield) || zone.is(ZoneType.Stack)) {
tgtCard.addCounter(counterType, counterAmount, true); tgtCard.addCounter(counterType, counterAmount, true);
if (remember) { if (remember) {
final int value = tgtCard.getTotalCountersToAdd(); final int value = tgtCard.getTotalCountersToAdd();