v1.2.1: fixed rare crash issues with aqua blast

This commit is contained in:
Evan Debenham
2022-03-28 21:59:04 -04:00
parent ec014d7d8a
commit 5faa486609

View File

@@ -40,7 +40,9 @@ public class AquaBlast extends TargetedSpell {
GeyserTrap geyser = new GeyserTrap();
geyser.pos = cell;
geyser.centerKnockBackDirection = bolt.path.get(bolt.dist+1);
if (bolt.path.size() > bolt.dist+1) {
geyser.centerKnockBackDirection = bolt.path.get(bolt.dist + 1);
}
geyser.activate();
}