v1.0.1: fixed hourglass stasis not clearing invis

This commit is contained in:
Evan Debenham 2021-08-23 19:26:40 -04:00
parent 83ba5dc931
commit 4c0220ca50

View File

@ -26,6 +26,7 @@ import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Buff;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Hunger;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Invisibility;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.LockedFloor;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Talent;
@ -256,6 +257,8 @@ public class TimekeepersHourglass extends Artifact {
if (super.attachTo(target)) {
Invisibility.dispel();
int usedCharge = Math.min(charge, 2);
//buffs always act last, so the stasis buff should end a turn early.
spend((5*usedCharge) - 1);