1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-10 01:01:05 -09:00

- hopefully line spacing is rectified on my client

This commit is contained in:
jeff@delmarus.com 2021-09-23 19:26:01 -05:00
parent 3a3e3fda48
commit b963168f35

View file

@ -641,11 +641,14 @@ public abstract class PlayerImpl implements Player, Serializable {
} }
// check for all variants of hexproof and any asthougheffects that would ignore it // check for all variants of hexproof and any asthougheffects that would ignore it
// TODO there may be "prevented by rule-modification" effects, so add them if known // TODO there may be "prevented by rule-modification" effects, so add them if known
for (Ability a : abilities) { if (sourceControllerId != null
if (a instanceof HexproofBaseAbility && this.hasOpponent(sourceControllerId, game)) {
&& ((HexproofBaseAbility) a).checkObject(source, game) for (Ability a : abilities) {
&& game.getContinuousEffects().asThough(this.getId(), AsThoughEffectType.HEXPROOF, null, sourceControllerId, game) == null) { if (a instanceof HexproofBaseAbility
return false; && ((HexproofBaseAbility) a).checkObject(source, game)
&& game.getContinuousEffects().asThough(this.getId(), AsThoughEffectType.HEXPROOF, null, sourceControllerId, game) == null) {
return false;
}
} }
} }
return !hasProtectionFrom(source, game); return !hasProtectionFrom(source, game);