v0.2.3: more implementation on hourglass

This commit is contained in:
Evan Debenham
2014-12-05 03:25:58 -05:00
parent 9a5f13b656
commit 3d55729861
3 changed files with 74 additions and 3 deletions
@@ -20,6 +20,7 @@ package com.shatteredpixel.shatteredpixeldungeon.actors.buffs;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.items.artifacts.CloakOfShadows;
import com.shatteredpixel.shatteredpixeldungeon.items.artifacts.TimekeepersHourglass;
import com.shatteredpixel.shatteredpixeldungeon.ui.BuffIndicator;
public class Invisibility extends FlavourBuff {
@@ -63,5 +64,10 @@ public class Invisibility extends FlavourBuff {
cloakBuff.act();
cloakBuff.detach();
}
//this isn't a form of invisibilty, but it is meant to dispel at the same time as it.
TimekeepersHourglass.timeFreeze timeFreeze = Dungeon.hero.buff( TimekeepersHourglass.timeFreeze.class );
if (timeFreeze != null && Dungeon.hero.visibleEnemies() > 0) {
timeFreeze.detach();
}
}
}