v1.2.1: fixed rare crash issues with aqua blast
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user