diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/Artifact.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/Artifact.java index f2490e144..3e0094bc9 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/Artifact.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/Artifact.java @@ -84,7 +84,7 @@ public class Artifact extends KindofMisc { public void activate( Char ch ) { if (passiveBuff != null){ - passiveBuff.detach(); + if (passiveBuff.target != null) passiveBuff.detach(); passiveBuff = null; } passiveBuff = passiveBuff(); @@ -96,7 +96,7 @@ public class Artifact extends KindofMisc { if (super.doUnequip( hero, collect, single )) { if (passiveBuff != null) { - passiveBuff.detach(); + if (passiveBuff.target != null) passiveBuff.detach(); passiveBuff = null; } diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfFireblast.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfFireblast.java index bd9ed656f..ce0cdbd62 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfFireblast.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfFireblast.java @@ -200,7 +200,8 @@ public class WandOfFireblast extends DamageWand { @Override protected int chargesPerCast() { - if (cursed || charger != null && charger.target.buff(WildMagic.WildMagicTracker.class) != null){ + if (cursed || + (charger != null && charger.target == null && charger.target.buff(WildMagic.WildMagicTracker.class) != null)){ return 1; } //consumes 30% of current charges, rounded up, with a min of 1 and a max of 3. 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 5524437f4..5a88e11d2 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 @@ -276,7 +276,8 @@ public class WandOfRegrowth extends Wand { @Override protected int chargesPerCast() { - if (cursed || charger != null && charger.target.buff(WildMagic.WildMagicTracker.class) != null){ + if (cursed || + (charger != null && charger.target == null && charger.target.buff(WildMagic.WildMagicTracker.class) != null)){ return 1; } //consumes 30% of current charges, rounded up, with a min of 1 and a max of 3.