From f592d6f42b3311ddec7773f53e9aefb793c0adb1 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 8 Aug 2016 16:30:38 -0400 Subject: [PATCH] v0.4.1a: wand of venom now procs soul mark in an AOE --- .../shatteredpixeldungeon/items/wands/WandOfVenom.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfVenom.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfVenom.java index 8fe9c519b..179c6ef49 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfVenom.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfVenom.java @@ -28,6 +28,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.VenomGas; import com.shatteredpixel.shatteredpixeldungeon.effects.MagicMissile; import com.shatteredpixel.shatteredpixeldungeon.items.weapon.enchantments.Venomous; import com.shatteredpixel.shatteredpixeldungeon.items.weapon.melee.MagesStaff; +import com.shatteredpixel.shatteredpixeldungeon.levels.Level; import com.shatteredpixel.shatteredpixeldungeon.mechanics.Ballistica; import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene; import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet; @@ -48,9 +49,11 @@ public class WandOfVenom extends Wand { ((VenomGas)venomGas).setStrength(level()+1); GameScene.add(venomGas); - Char ch = Actor.findChar(bolt.collisionPos); - if (ch != null){ - processSoulMark(ch, chargesPerCast()); + for (int i : Level.NEIGHBOURS9) { + Char ch = Actor.findChar(bolt.collisionPos + i); + if (ch != null) { + processSoulMark(ch, chargesPerCast()); + } } }