v0.9.3: fixed cloak not recharging if unequipped before talent

This commit is contained in:
Evan Debenham
2021-05-07 17:07:21 -04:00
parent 6c8a9de4b6
commit 09c0ce6afb

View File

@@ -205,6 +205,14 @@ public enum Talent {
if (hero.belongings.misc instanceof Ring) ((Ring) hero.belongings.misc).setKnown();
}
if (talent == LIGHT_CLOAK && hero.pointsInTalent(LIGHT_CLOAK) == 1){
for (Item item : Dungeon.hero.belongings.backpack){
if (item instanceof CloakOfShadows){
((CloakOfShadows) item).activate(Dungeon.hero);
}
}
}
if (talent == FARSIGHT){
Dungeon.observe();
}