diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Talent.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Talent.java index 0bb223a35..277d69b1a 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Talent.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Talent.java @@ -429,8 +429,10 @@ public enum Talent { if (hero.hasTalent(TEST_SUBJECT)){ //heal for 2/3 HP hero.HP = Math.min(hero.HP + 1 + hero.pointsInTalent(TEST_SUBJECT), hero.HT); - Emitter e = hero.sprite.emitter(); - if (e != null) e.burst(Speck.factory(Speck.HEALING), hero.pointsInTalent(TEST_SUBJECT)); + if (hero.sprite != null) { + Emitter e = hero.sprite.emitter(); + if (e != null) e.burst(Speck.factory(Speck.HEALING), hero.pointsInTalent(TEST_SUBJECT)); + } } if (hero.hasTalent(TESTED_HYPOTHESIS)){ //2/3 turns of wand recharging diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/scrolls/ScrollOfRecharging.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/scrolls/ScrollOfRecharging.java index e15b26ef3..ec1069a37 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/scrolls/ScrollOfRecharging.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/scrolls/ScrollOfRecharging.java @@ -56,8 +56,10 @@ public class ScrollOfRecharging extends Scroll { } public static void charge( Char user ) { - Emitter e = user.sprite.centerEmitter(); - if (e != null) e.burst( EnergyParticle.FACTORY, 15 ); + if (user.sprite != null) { + Emitter e = user.sprite.centerEmitter(); + if (e != null) e.burst(EnergyParticle.FACTORY, 15); + } } @Override