V0.2.0: Partially implemented Cloak of Shadows

This commit is contained in:
Evan Debenham
2014-08-25 17:09:40 -04:00
parent 43f32590df
commit 62d5ccebbd
3 changed files with 257 additions and 1 deletions

View File

@@ -19,6 +19,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.ui.BuffIndicator;
public class Invisibility extends FlavourBuff {
@@ -56,5 +57,9 @@ public class Invisibility extends FlavourBuff {
if (buff != null && Dungeon.hero.visibleEnemies() > 0) {
buff.detach();
}
CloakofShadows.cloakStealth cloakBuff = Dungeon.hero.buff( CloakofShadows.cloakStealth.class );
if (cloakBuff != null && Dungeon.hero.visibleEnemies() > 0) {
cloakBuff.detach();
}
}
}