Fixed implementation of team-controlled effects

This commit is contained in:
Evan Kranzler 2018-05-27 10:40:57 -04:00
parent 21578709bc
commit c7f57d8c68
15 changed files with 116 additions and 84 deletions

View file

@ -185,13 +185,16 @@ public abstract class ActivatedAbilityImpl extends AbilityImpl implements Activa
switch (mayActivate) {
case ANY:
break;
case NOT_YOU:
if (controlsAbility(playerId, game)) {
return false;
}
break;
case TEAM:
if (game.getPlayer(controllerId).hasOpponent(playerId, game)) {
return false;
}
break;
case OPPONENT:
if (!game.getPlayer(controllerId).hasOpponent(playerId, game)) {
return false;