From f3909c0b2e06f4b3f577cc75c1ca3c35ac19547f Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 11 Aug 2019 16:00:25 -0400 Subject: [PATCH] v0.7.4c: fixed fog of war bugs involving distant wards --- .../shatteredpixeldungeon/items/wands/WandOfWarding.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfWarding.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfWarding.java index c748c4855..45015dc5a 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfWarding.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfWarding.java @@ -211,6 +211,7 @@ public class WandOfWarding extends Wand { viewDistance++; name = Messages.get(this, "name_" + tier ); updateSpriteState(); + GameScene.updateFog(pos, viewDistance+1); } } @@ -351,6 +352,7 @@ public class WandOfWarding extends Wand { public void destroy() { super.destroy(); Dungeon.observe(); + GameScene.updateFog(pos, viewDistance+1); } @Override @@ -368,7 +370,6 @@ public class WandOfWarding extends Wand { protected void onSelect(int index) { if (index == 0){ die(null); - Dungeon.observe(); } } });