added Academy Drake, Knight of Malice, Hexproof from White

This commit is contained in:
igoudt 2018-03-22 12:05:06 +01:00
parent ad8b046b05
commit af83a34c64
6 changed files with 163 additions and 4 deletions

View file

@ -955,6 +955,14 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
}
}
if (abilities.containsKey(HexproofFromWhiteAbility.getInstance().getId()) ) {
if (game.getPlayer(this.getControllerId()).hasOpponent(sourceControllerId, game)
&& !game.getContinuousEffects().asThough(this.getId(), AsThoughEffectType.HEXPROOF, sourceControllerId, game)
&& source.getColor(game).isWhite()) {
return false;
}
}
if (hasProtectionFrom(source, game)) {
return false;
}