Update SpireTracer.java

Creature must be either flying or reach, not both sumiltaneously
This commit is contained in:
Viktoras 2013-06-13 16:26:20 +03:00
parent 537f826607
commit 2a8b86dcc4

View file

@ -94,12 +94,12 @@ class CantBeBlockedExceptByCreaturesWithFlyingOrReachEffect extends RestrictionE
@Override
public boolean canBeBlocked(Permanent attacker, Permanent blocker, Ability source, Game game) {
if (!blocker.getAbilities().containsKey(FlyingAbility.getInstance().getId())
|| !blocker.getAbilities().containsKey(ReachAbility.getInstance().getId())) {
return false;
}
if (blocker.getAbilities().containsKey(FlyingAbility.getInstance().getId())
|| blocker.getAbilities().containsKey(ReachAbility.getInstance().getId())) {
return true;
}
return false;
}
@Override
public CantBeBlockedExceptByCreaturesWithFlyingOrReachEffect copy() {