mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
* 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:
parent
69970258ac
commit
4e06f60f76
2 changed files with 15 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue