mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
wrongly changed the equals to == for those files
This commit is contained in:
parent
39c9420ad2
commit
9c71596fd8
2 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue