mirror of
https://github.com/magefree/mage.git
synced 2026-01-23 19:59:54 -08:00
Fixed evasion abilities. Splitted canBlock to canBeBlocked and canBlock methods (previous version caused bugs). Refactored some cards.
This commit is contained in:
parent
8bcc228aa4
commit
a3a38823d6
9 changed files with 18 additions and 10 deletions
|
|
@ -115,7 +115,7 @@ class SignalPestEffect extends RestrictionEffect<SignalPestEffect> {
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean canBlock(Permanent attacker, Permanent blocker, Game game) {
|
||||
public boolean canBeBlocked(Permanent attacker, Permanent blocker, Game game) {
|
||||
if (blocker.getAbilities().contains(FlyingAbility.getInstance()) || blocker.getAbilities().contains(ReachAbility.getInstance())) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ class JuggernautEffect extends CantBlockSourceEffect {
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean canBlock(Permanent attacker, Permanent blocker, Game game) {
|
||||
public boolean canBeBlocked(Permanent attacker, Permanent blocker, Game game) {
|
||||
return !blocker.getSubtype().contains("Wall");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue