v0.9.3: fixed preparation persisting when cloak is deactivated

This commit is contained in:
Evan Debenham
2021-05-05 21:03:34 -04:00
parent 720f6a6590
commit 6530f0401a
@@ -98,6 +98,9 @@ public class CloakOfShadows extends Artifact {
} else { } else {
activeBuff.detach(); activeBuff.detach();
activeBuff = null; activeBuff = null;
if (hero.buff(Preparation.class) != null){
hero.buff(Preparation.class).detach();
}
hero.sprite.operate( hero.pos ); hero.sprite.operate( hero.pos );
} }