mirror of
https://github.com/magefree/mage.git
synced 2026-01-23 11:49:56 -08:00
Added attacker to canBlock method.
This commit is contained in:
parent
7edffebb5d
commit
42812541b9
11 changed files with 24 additions and 15 deletions
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue