v2.1.0: fixed protective shadows not triggering if invis while upgraded

This commit is contained in:
Evan Debenham
2023-05-16 12:31:15 -04:00
parent b82d2baa9b
commit e296a6dfe4

View File

@@ -373,6 +373,10 @@ public enum Talent {
if (hero.belongings.weapon() != null) hero.belongings.weapon().identify();
}
if (talent == PROTECTIVE_SHADOWS && hero.invisible > 0){
Buff.affect(hero, Talent.ProtectiveShadowsTracker.class);
}
if (talent == LIGHT_CLOAK && hero.heroClass == HeroClass.ROGUE){
for (Item item : Dungeon.hero.belongings.backpack){
if (item instanceof CloakOfShadows){