removed some empty lines
parent
1e62a3b03e
commit
94ef57eb03
|
@ -12,7 +12,6 @@ public class MagicChangeStateAction extends MagicAction {
|
||||||
private boolean changed;
|
private boolean changed;
|
||||||
|
|
||||||
public MagicChangeStateAction(final MagicPermanent permanent,final MagicPermanentState state,final boolean set) {
|
public MagicChangeStateAction(final MagicPermanent permanent,final MagicPermanentState state,final boolean set) {
|
||||||
|
|
||||||
this.permanent=permanent;
|
this.permanent=permanent;
|
||||||
this.state=state;
|
this.state=state;
|
||||||
this.set=set;
|
this.set=set;
|
||||||
|
@ -20,7 +19,6 @@ public class MagicChangeStateAction extends MagicAction {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doAction(final MagicGame game) {
|
public void doAction(final MagicGame game) {
|
||||||
|
|
||||||
changed=permanent.hasState(state)!=set;
|
changed=permanent.hasState(state)!=set;
|
||||||
if (changed) {
|
if (changed) {
|
||||||
if (set) {
|
if (set) {
|
||||||
|
@ -34,7 +32,6 @@ public class MagicChangeStateAction extends MagicAction {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void undoAction(final MagicGame game) {
|
public void undoAction(final MagicGame game) {
|
||||||
|
|
||||||
if (changed) {
|
if (changed) {
|
||||||
if (set) {
|
if (set) {
|
||||||
permanent.clearState(state);
|
permanent.clearState(state);
|
||||||
|
@ -43,4 +40,4 @@ public class MagicChangeStateAction extends MagicAction {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue