Fix NPE in IceSpike

This commit is contained in:
jedk1 2016-02-09 17:00:16 +00:00
parent 9c8c9c1741
commit 2cb24ac3ad

View file

@ -216,7 +216,9 @@ public class IceSpikeBlast extends IceAbility {
progressing = false;
}
originalSource.revertBlock();
bPlayer.addCooldown("IceSpikeBlast", cooldown);
if (player != null && player.isOnline()) {
bPlayer.addCooldown("IceSpikeBlast", cooldown);
}
}
private void returnWater() {