mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00: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
|
||||
// TODO there may be "prevented by rule-modification" effects, so add them if known
|
||||
for (Ability a : abilities) {
|
||||
if (a instanceof HexproofBaseAbility
|
||||
&& ((HexproofBaseAbility) a).checkObject(source, game)
|
||||
&& game.getContinuousEffects().asThough(this.getId(), AsThoughEffectType.HEXPROOF, null, sourceControllerId, game) == null) {
|
||||
return false;
|
||||
if (sourceControllerId != null
|
||||
&& this.hasOpponent(sourceControllerId, game)) {
|
||||
for (Ability a : abilities) {
|
||||
if (a instanceof HexproofBaseAbility
|
||||
&& ((HexproofBaseAbility) a).checkObject(source, game)
|
||||
&& game.getContinuousEffects().asThough(this.getId(), AsThoughEffectType.HEXPROOF, null, sourceControllerId, game) == null) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return !hasProtectionFrom(source, game);
|
||||
|
|
Loading…
Reference in a new issue