mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Fixed Tribute
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user