From aeb554a07ccdce45821fe402da4f0d4257e3cc84 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 27 Jun 2020 19:46:55 -0400 Subject: [PATCH] v0.8.1: fixed golden lotus spawning on other characters --- .../items/wands/WandOfRegrowth.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfRegrowth.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfRegrowth.java index 1910e805f..ff551813b 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfRegrowth.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfRegrowth.java @@ -114,15 +114,16 @@ public class WandOfRegrowth extends Wand { if (chargesPerCast() >= 3){ Lotus l = new Lotus(); l.setLevel(buffedLvl()); - if (cells.contains(target)){ + if (cells.contains(target) && Actor.findChar(target) == null){ cells.remove((Integer)target); l.pos = target; GameScene.add(l); } else { for (int i = bolt.path.size()-1; i >= 0; i--){ - if (cells.contains(bolt.path.get(i))){ - cells.remove((Integer)bolt.path.get(i)); - l.pos = bolt.path.get(i); + int c = bolt.path.get(i); + if (cells.contains(c) && Actor.findChar(c) == null){ + cells.remove((Integer)c); + l.pos = c; GameScene.add(l); break; }