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:
parent
3a3e3fda48
commit
b963168f35
1 changed files with 8 additions and 5 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue