v3.0.1: added a safety check to new censer logic

This commit is contained in:
Evan Debenham
2025-03-06 11:42:58 -05:00
parent 8f0a13ca22
commit ef1f6f68de

View File

@@ -218,7 +218,9 @@ public class ChaoticCenser extends Trinket {
if (targetCell != null) {
Buff.affect(Dungeon.hero, GasSpewer.class, Dungeon.hero.cooldown()).set(targetCell, gasToSpawn, (int)gasQuantity);
GLog.w(Messages.get(ChaoticCenser.class, "spew", Messages.titleCase(Messages.get(gasToSpawn, "name")) ));
target.sprite.parent.addToBack(new TargetedCell(targetCell, 0xFF0000));
if (target.sprite != null && target.sprite.parent != null) {
target.sprite.parent.addToBack(new TargetedCell(targetCell, 0xFF0000));
}
return true;
}
}