From 23048dc4d8bc02ec78606e0bd2b109151da9c3e6 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 8 Jul 2019 22:51:11 -0400 Subject: [PATCH] v0.7.4: fixed further bugs with wand of warding --- .../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 81dc715bf..ebe283c70 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 @@ -270,7 +270,7 @@ public class WandOfWarding extends Wand { spend( 1f ); //always hits - int dmg = Random.Int( 2 + wandLevel, 8 + 4*wandLevel ); + int dmg = Random.NormalIntRange( 2 + wandLevel, 8 + 4*wandLevel ); enemy.damage( dmg, WandOfWarding.class ); if (enemy.isAlive()){ Wand.processSoulMark(enemy, wandLevel, 1); @@ -375,6 +375,7 @@ public class WandOfWarding extends Wand { public void restoreFromBundle(Bundle bundle) { super.restoreFromBundle(bundle); tier = bundle.getInt(TIER); + viewDistance = 2 + tier; name = Messages.get(this, "name_" + tier ); wandLevel = bundle.getInt(WAND_LEVEL); totalZaps = bundle.getInt(TOTAL_ZAPS);