mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
Remove time counter - fixed that it can't be selected for permanents with protection (example: Rift Elemental, close #13857);
This commit is contained in:
parent
c7a485b728
commit
ea7e966c22
1 changed files with 1 additions and 12 deletions
|
|
@ -55,18 +55,7 @@ public class TargetPermanentOrSuspendedCard extends TargetImpl {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canChoose(UUID sourceControllerId, Ability source, Game game) {
|
public boolean canChoose(UUID sourceControllerId, Ability source, Game game) {
|
||||||
MageObject sourceObject = game.getObject(source);
|
return canChooseFromPossibleTargets(sourceControllerId, source, game);
|
||||||
for (Permanent permanent : game.getBattlefield().getActivePermanents(filter.getPermanentFilter(), sourceControllerId, game)) {
|
|
||||||
if (permanent.canBeTargetedBy(sourceObject, sourceControllerId, source, game) && filter.match(permanent, sourceControllerId, source, game)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
for (Card card : game.getExile().getAllCards(game)) {
|
|
||||||
if (filter.match(card, sourceControllerId, source, game)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue