v0.3.0a: fixed crash bug with wand of blast wave
This commit is contained in:
parent
31af8e946d
commit
418e600482
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user