V0.2.0: Refined Cloak of Shadows implementation, almost done.

This commit is contained in:
Evan Debenham
2014-08-26 01:19:17 -04:00
parent c8ffb41754
commit 92e664472b
5 changed files with 103 additions and 22 deletions
@@ -19,7 +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.items.artifacts.CloakOfShadows;
import com.shatteredpixel.shatteredpixeldungeon.ui.BuffIndicator;
public class Invisibility extends FlavourBuff {
@@ -57,8 +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 );
CloakOfShadows.cloakStealth cloakBuff = Dungeon.hero.buff( CloakOfShadows.cloakStealth.class );
if (cloakBuff != null && Dungeon.hero.visibleEnemies() > 0) {
cloakBuff.act();
cloakBuff.detach();
}
}