v0.9.3b: deactivating cloak now only ends prep if hero is visible

This commit is contained in:
Evan Debenham 2021-06-16 21:12:20 -04:00
parent 5a733d72e8
commit eb0c857ef8

View File

@ -98,7 +98,7 @@ public class CloakOfShadows extends Artifact {
} else {
activeBuff.detach();
activeBuff = null;
if (hero.buff(Preparation.class) != null){
if (hero.invisible <= 0 && hero.buff(Preparation.class) != null){
hero.buff(Preparation.class).detach();
}
hero.sprite.operate( hero.pos );