v1.2.1: fixed rare crash issues with aqua blast
This commit is contained in:
+3
-1
@@ -40,7 +40,9 @@ public class AquaBlast extends TargetedSpell {
|
|||||||
|
|
||||||
GeyserTrap geyser = new GeyserTrap();
|
GeyserTrap geyser = new GeyserTrap();
|
||||||
geyser.pos = cell;
|
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();
|
geyser.activate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user