v0.3.2c: Fixed the timekeeper's hourglass stasis effect
This commit is contained in:
committed by
Evan Debenham
parent
83b60bf5a4
commit
6b7e28c88a
+8
-3
@@ -228,9 +228,11 @@ public class TimekeepersHourglass extends Artifact {
|
||||
|
||||
@Override
|
||||
public boolean attachTo(Char target) {
|
||||
|
||||
if (super.attachTo(target)) {
|
||||
//buffs always act last, so the stasis buff should end a turn early.
|
||||
spend(charge-1);
|
||||
((Hero)target).spendAndNext(charge);
|
||||
spend(charge - 1);
|
||||
((Hero) target).spendAndNext(charge);
|
||||
|
||||
//shouldn't punish the player for going into stasis frequently
|
||||
Hunger hunger = target.buff(Hunger.class);
|
||||
@@ -245,7 +247,10 @@ public class TimekeepersHourglass extends Artifact {
|
||||
|
||||
Dungeon.observe();
|
||||
|
||||
return super.attachTo(target);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user