v0.2.3e: fixed a bug where Time Stasis would sometimes not drop invisibility.
This commit is contained in:
parent
951a0c918a
commit
0ae1b05b22
|
@ -235,13 +235,14 @@ public class TimekeepersHourglass extends Artifact {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean act() {
|
public boolean act() {
|
||||||
target.invisible --;
|
|
||||||
detach();
|
detach();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void detach() {
|
public void detach() {
|
||||||
|
if (target.invisible > 0)
|
||||||
|
target.invisible --;
|
||||||
super.detach();
|
super.detach();
|
||||||
activeBuff = null;
|
activeBuff = null;
|
||||||
Dungeon.observe();
|
Dungeon.observe();
|
||||||
|
@ -326,8 +327,8 @@ public class TimekeepersHourglass extends Artifact {
|
||||||
super.restoreFromBundle(bundle);
|
super.restoreFromBundle(bundle);
|
||||||
|
|
||||||
int[] values = bundle.getIntArray( PRESSES );
|
int[] values = bundle.getIntArray( PRESSES );
|
||||||
for (int i = 0; i < values.length; i ++)
|
for (int value : values)
|
||||||
presses.add(values[i]);
|
presses.add(value);
|
||||||
|
|
||||||
partialTime = bundle.getFloat( PARTIALTIME );
|
partialTime = bundle.getFloat( PARTIALTIME );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user