v0.3.0a: fixed crash bug with wand of blast wave

This commit is contained in:
Evan Debenham 2015-05-27 02:01:45 -04:00
parent 31af8e946d
commit 418e600482

View File

@ -70,7 +70,7 @@ public class WandOfBlastWave extends Wand {
if (ch != null){
ch.damage(damage, this);
if (ch.isAlive() && bolt.path.size() > bolt.dist) {
if (ch.isAlive() && bolt.path.size() > bolt.dist+1) {
Ballistica trajectory = new Ballistica(ch.pos, bolt.path.get(bolt.dist + 1), Ballistica.MAGIC_BOLT);
int strength = level + 3;
throwChar(ch, trajectory, strength);