forked from External/mage
added 3 Dominari cards, benalish marshal, charge, knight of grace, added a new condition and a new ability
This commit is contained in:
parent
b046428f8c
commit
ddf568679f
9 changed files with 365 additions and 28 deletions
|
|
@ -945,6 +945,16 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (abilities.containsKey(HexproofFromBlackAbility.getInstance().getId()) ) {
|
||||
if (game.getPlayer(this.getControllerId()).hasOpponent(sourceControllerId, game)
|
||||
&& !game.getContinuousEffects().asThough(this.getId(), AsThoughEffectType.HEXPROOF, sourceControllerId, game)
|
||||
&& source.getColor(game).isBlack()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (hasProtectionFrom(source, game)) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue