Browse Source

A dead kraken can't attack.

GJ 12 years ago
parent
commit
0033c8864e

+ 5 - 1
src/main/java/com/gmail/nossr50/runnables/skills/KrakenAttackTask.java

@@ -20,7 +20,11 @@ public class KrakenAttackTask extends BukkitRunnable {
 
     @Override
     public void run() {
-        if (!player.isDead()) {
+        if (!kraken.isValid()) {
+            this.cancel();
+        }
+
+        if (player.isValid()) {
             Location location = player.getLocation();
             World world = player.getWorld();