wrongly changed the equals to == for those files

This commit is contained in:
ingmargoudt 2017-03-02 16:41:38 +01:00
parent 39c9420ad2
commit 9c71596fd8
2 changed files with 5 additions and 3 deletions

View file

@ -27,6 +27,7 @@
*/
package mage.cards.a;
import java.util.Objects;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.TriggeredAbilityImpl;
@ -101,7 +102,7 @@ class AeonChroniclerTriggeredAbility extends TriggeredAbilityImpl {
@Override
public boolean checkTrigger(GameEvent event, Game game) {
return event.getData() == CounterType.TIME.getName() && event.getTargetId().equals(this.getSourceId());
return Objects.equals(event.getData(), CounterType.TIME.getName()) && event.getTargetId().equals(this.getSourceId());
}
@Override

View file

@ -28,6 +28,7 @@
package mage.cards.i;
import java.util.List;
import java.util.Objects;
import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.common.CastOnlyDuringPhaseStepSourceAbility;
@ -147,7 +148,7 @@ class IllusionistsGambitRequirementEffect extends RequirementEffect {
@Override
public boolean isInactive(Ability source, Game game) {
if (game.getTurn().getStepType() == PhaseStep.END_COMBAT) {
if (game.getTurn().getPhase() != phase) {
if (!Objects.equals(game.getTurn().getPhase(), phase)) {
return true;
}
}
@ -191,7 +192,7 @@ class IllusionistsGambitRestrictionEffect extends RestrictionEffect {
@Override
public boolean isInactive(Ability source, Game game) {
if (game.getTurn().getStepType() == PhaseStep.END_COMBAT) {
if (game.getTurn().getPhase() != phase) {
if (!Objects.equals(game.getTurn().getPhase(), phase)) {
return true;
}
}