From e296a6dfe4667bd9f75ce4fbb3cb6483c91f0ab7 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 16 May 2023 12:31:15 -0400 Subject: [PATCH] v2.1.0: fixed protective shadows not triggering if invis while upgraded --- .../shatteredpixeldungeon/actors/hero/Talent.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Talent.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Talent.java index 8c06e27f4..92fecb35d 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Talent.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Talent.java @@ -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){