v3.0.1: added a safety check to new censer logic
This commit is contained in:
+3
-1
@@ -218,7 +218,9 @@ public class ChaoticCenser extends Trinket {
|
|||||||
if (targetCell != null) {
|
if (targetCell != null) {
|
||||||
Buff.affect(Dungeon.hero, GasSpewer.class, Dungeon.hero.cooldown()).set(targetCell, gasToSpawn, (int)gasQuantity);
|
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")) ));
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user