Remove time counter - fixed that it can't be selected for permanents with protection (example: Rift Elemental, close #13857);

This commit is contained in:
Oleg Agafonov 2025-08-05 01:24:26 +04:00
parent c7a485b728
commit ea7e966c22

View file

@ -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