v3.0.1: added a safety check to new censer logic
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user