forked from External/mage
change enum equals to ==
This commit is contained in:
parent
82841c16c6
commit
d01aed42ed
40 changed files with 57 additions and 57 deletions
|
|
@ -85,7 +85,7 @@ public class CantBeTargetedAttachedEffect extends ContinuousRuleModifyingEffectI
|
|||
public boolean applies(GameEvent event, Ability source, Game game) {
|
||||
Permanent attachment = game.getPermanent(source.getSourceId());
|
||||
if (attachment != null && event.getTargetId().equals(attachment.getAttachedTo())) {
|
||||
if (targetController.equals(TargetController.OPPONENT)
|
||||
if (targetController == TargetController.OPPONENT
|
||||
&& !game.getOpponents(source.getControllerId()).contains(event.getPlayerId())) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue