* Shadow - Fixed that creatures with shadow could wrongly block creatures without shadow.

This commit is contained in:
LevelX2 2014-11-22 09:35:09 +01:00
parent 8590a22557
commit 50483fc096

View file

@ -59,6 +59,11 @@ class ShadowEffect extends RestrictionEffect implements MageSingleton {
return false; return false;
} }
@Override
public boolean canBlock(Permanent attacker, Permanent blocker, Ability source, Game game) {
return attacker.getAbilities().containsKey(ShadowAbility.getInstance().getId());
}
@Override @Override
public boolean canBeBlocked(Permanent attacker, Permanent blocker, Ability source, Game game) { public boolean canBeBlocked(Permanent attacker, Permanent blocker, Ability source, Game game) {
if (blocker.getAbilities().containsKey(ShadowAbility.getInstance().getId()) if (blocker.getAbilities().containsKey(ShadowAbility.getInstance().getId())