From 47f1c63df3489e204bea96c23e81ee5de3e527c5 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 2 Sep 2016 01:26:55 -0400 Subject: [PATCH] v0.4.2: fixed a bug with loading and the shadows buff --- .../shatteredpixeldungeon/actors/buffs/Shadows.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Shadows.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Shadows.java index 7ee8d832e..9043d0449 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Shadows.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Shadows.java @@ -55,7 +55,8 @@ public class Shadows extends Invisibility { public boolean attachTo( Char target ) { if (super.attachTo( target )) { Sample.INSTANCE.play( Assets.SND_MELD ); - Dungeon.observe(); + if (Dungeon.level != null) + Dungeon.observe(); return true; } else { return false;