forked from External/mage
Make the Counters API for card and permanent consistent.
This commit is contained in:
parent
277dc19fec
commit
148f633672
176 changed files with 272 additions and 277 deletions
|
|
@ -80,7 +80,7 @@ public class TargetPermanentOrPlayerWithCounter extends TargetPermanentOrPlayer
|
|||
public boolean canTarget(UUID id, Game game) {
|
||||
Permanent permanent = game.getPermanent(id);
|
||||
if (permanent != null) {
|
||||
if (permanent.getCounters().size() == 0) {
|
||||
if (permanent.getCounters(game).size() == 0) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
@ -97,7 +97,7 @@ public class TargetPermanentOrPlayerWithCounter extends TargetPermanentOrPlayer
|
|||
public boolean canTarget(UUID id, Ability source, Game game) {
|
||||
Permanent permanent = game.getPermanent(id);
|
||||
if (permanent != null) {
|
||||
if (permanent.getCounters().size() == 0) {
|
||||
if (permanent.getCounters(game).size() == 0) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue