diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/Char.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/Char.java index 50ee4178c..36c831c59 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/Char.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/Char.java @@ -699,7 +699,8 @@ public abstract class Char extends Actor { //Returns the level a glyph is at for a char, or -1 if they are not benefitting from that glyph //This function is needed as (unlike enchantments) many glyphs trigger in a variety of cases public int glyphLevel(Class cls){ - if (Dungeon.hero != null && this != Dungeon.hero && Dungeon.hero.alignment == alignment + if (Dungeon.hero != null && Dungeon.level != null + && this != Dungeon.hero && Dungeon.hero.alignment == alignment && Dungeon.level.distance(pos, Dungeon.hero.pos) <= 2 && Dungeon.hero.buff(AuraOfProtection.AuraBuff.class) != null) { return Dungeon.hero.glyphLevel(cls);