mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Shadow - Fixed that creatures with shadow could wrongly block creatures without shadow.
This commit is contained in:
parent
8590a22557
commit
50483fc096
1 changed files with 5 additions and 0 deletions
|
@ -59,6 +59,11 @@ class ShadowEffect extends RestrictionEffect implements MageSingleton {
|
|||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canBlock(Permanent attacker, Permanent blocker, Ability source, Game game) {
|
||||
return attacker.getAbilities().containsKey(ShadowAbility.getInstance().getId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canBeBlocked(Permanent attacker, Permanent blocker, Ability source, Game game) {
|
||||
if (blocker.getAbilities().containsKey(ShadowAbility.getInstance().getId())
|
||||
|
|
Loading…
Reference in a new issue