forked from External/mage
Equals should be compared with == but not equals()
This commit is contained in:
parent
1f9b51d833
commit
d93061c0bc
175 changed files with 348 additions and 344 deletions
|
|
@ -60,7 +60,7 @@ public class DealsDamageToAPlayerAttachedTriggeredAbility extends TriggeredAbili
|
|||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
if (targetController.equals(TargetController.OPPONENT)) {
|
||||
if (targetController == TargetController.OPPONENT) {
|
||||
Player controller = game.getPlayer(this.getControllerId());
|
||||
if (controller == null || !game.isOpponent(controller, event.getPlayerId())) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue