v0.9.3: fixed cloak not recharging if unequipped before talent
This commit is contained in:
@@ -205,6 +205,14 @@ public enum Talent {
|
|||||||
if (hero.belongings.misc instanceof Ring) ((Ring) hero.belongings.misc).setKnown();
|
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){
|
if (talent == FARSIGHT){
|
||||||
Dungeon.observe();
|
Dungeon.observe();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user