* Umezawa's Jitte - Fixed that combat damage triggered ability triggered wrongly multiple times, if damage of equipped create was dealt to different creatures.

This commit is contained in:
LevelX2 2014-06-23 01:29:21 +02:00
parent 69970258ac
commit 4e06f60f76
2 changed files with 15 additions and 5 deletions

View file

@ -42,8 +42,8 @@ import mage.util.CardUtil;
*/
public class RemoveCountersSourceCost extends CostImpl {
private int amount;
private String name;
private final int amount;
private final String name;
public RemoveCountersSourceCost(Counter counter) {
this.amount = counter.getCount();
@ -63,8 +63,9 @@ public class RemoveCountersSourceCost extends CostImpl {
@Override
public boolean canPay(UUID sourceId, UUID controllerId, Game game) {
Permanent permanent = game.getPermanent(sourceId);
if (permanent.getCounters().getCount(name) >= amount)
if (permanent.getCounters().getCount(name) >= amount) {
return true;
}
return false;
}