mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
fix mystic barrier
This commit is contained in:
parent
6336f82845
commit
b7e2459129
1 changed files with 7 additions and 6 deletions
|
@ -27,10 +27,6 @@
|
|||
*/
|
||||
package mage.cards.m;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.TriggeredAbilityImpl;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
|
@ -51,6 +47,11 @@ import mage.game.permanent.Permanent;
|
|||
import mage.players.Player;
|
||||
import mage.players.PlayerList;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author LevelX2
|
||||
|
@ -196,7 +197,7 @@ class MysticBarrierReplacementEffect extends ReplacementEffectImpl {
|
|||
}
|
||||
if (defender != null) {
|
||||
PlayerList playerList = game.getState().getPlayerList(event.getPlayerId());
|
||||
if (allowedDirection == MysticBarrier.ALLOW_ATTACKING_LEFT) {
|
||||
if (allowedDirection.equals(MysticBarrier.ALLOW_ATTACKING_LEFT)) {
|
||||
if (!playerList.getNext().equals(defender.getId())) {
|
||||
// the defender is not the player to the left
|
||||
Player attacker = game.getPlayer(event.getPlayerId());
|
||||
|
@ -206,7 +207,7 @@ class MysticBarrierReplacementEffect extends ReplacementEffectImpl {
|
|||
return true;
|
||||
}
|
||||
}
|
||||
if (allowedDirection == MysticBarrier.ALLOW_ATTACKING_RIGHT) {
|
||||
if (allowedDirection.equals(MysticBarrier.ALLOW_ATTACKING_RIGHT)) {
|
||||
if (!playerList.getPrevious().equals(defender.getId())) {
|
||||
// the defender is not the player to the right
|
||||
Player attacker = game.getPlayer(event.getPlayerId());
|
||||
|
|
Loading…
Reference in a new issue