Fix Maarika showing all enemy untapped, noncreature permanents as being required to block her

Now only creatures get the "Must block Maarika" hint in their tooltip on mouseover
This commit is contained in:
PurpleCrowbar 2025-09-09 17:38:43 +01:00
parent c03f3502df
commit 6b7a757c2f

View file

@ -1537,7 +1537,7 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
@Override @Override
public boolean canBlock(UUID attackerId, Game game) { public boolean canBlock(UUID attackerId, Game game) {
if (tapped && game.getState().getContinuousEffects().asThough(this.getId(), AsThoughEffectType.BLOCK_TAPPED, null, this.getControllerId(), game).isEmpty() || isBattle(game) || isSuspected()) { if (tapped && game.getState().getContinuousEffects().asThough(this.getId(), AsThoughEffectType.BLOCK_TAPPED, null, this.getControllerId(), game).isEmpty() || isBattle(game) || !isCreature(game) || isSuspected()) {
return false; return false;
} }
Permanent attacker = game.getPermanent(attackerId); Permanent attacker = game.getPermanent(attackerId);