mirror of
https://github.com/correl/mage.git
synced 2025-01-13 11:01:58 +00:00
Corrected bug with copy/paste
This commit is contained in:
parent
2c553dc2d4
commit
6807496357
1 changed files with 3 additions and 3 deletions
|
@ -49,7 +49,7 @@ public class CantAttackIfDefenderControlsPermanent extends RestrictionEffect {
|
|||
public CantAttackIfDefenderControlsPermanent(FilterPermanent filter) {
|
||||
super(Duration.WhileOnBattlefield);
|
||||
this.filter = filter;
|
||||
staticText = new StringBuilder("{this} can't attack unless defending player controls ").append(filter.getMessage()).toString();
|
||||
staticText = new StringBuilder("{this} can't attack if defending player controls ").append(filter.getMessage()).toString();
|
||||
}
|
||||
|
||||
public CantAttackIfDefenderControlsPermanent(final CantAttackIfDefenderControlsPermanent effect) {
|
||||
|
@ -71,12 +71,12 @@ public class CantAttackIfDefenderControlsPermanent extends RestrictionEffect {
|
|||
if (permanent != null) {
|
||||
defendingPlayerId = permanent.getControllerId();
|
||||
} else {
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
defendingPlayerId = defenderId;
|
||||
}
|
||||
if (defendingPlayerId != null && game.getBattlefield().countAll(filter, defendingPlayerId, game) == 0) {
|
||||
if (defendingPlayerId != null && game.getBattlefield().countAll(filter, defendingPlayerId, game) > 0) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue