added 3 Dominari cards, benalish marshal, charge, knight of grace, added a new condition and a new ability

This commit is contained in:
igoudt 2018-03-18 00:18:47 +01:00
parent b046428f8c
commit ddf568679f
9 changed files with 365 additions and 28 deletions

View file

@ -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;
}