Added attacker to canBlock method.

This commit is contained in:
magenoxx 2011-01-13 23:29:15 +03:00
parent 7edffebb5d
commit 42812541b9
11 changed files with 24 additions and 15 deletions

View file

@ -106,7 +106,7 @@ class JuggernautEffect extends CantBlockSourceEffect {
}
@Override
public boolean canBlock(Permanent blocker, Game game) {
public boolean canBlock(Permanent attacker, Permanent blocker, Game game) {
return !blocker.getSubtype().contains("Wall");
}

View file

@ -105,7 +105,7 @@ class PacifismEffect extends RestrictionEffect<PacifismEffect> {
}
@Override
public boolean canBlock(Permanent blocker, Game game) {
public boolean canBlock(Permanent attacker, Permanent blocker, Game game) {
return false;
}