From 0033c8864eac714a47921773c3c8346530fe25ba Mon Sep 17 00:00:00 2001 From: GJ Date: Wed, 1 May 2013 22:17:48 -0400 Subject: [PATCH] A dead kraken can't attack. --- .../gmail/nossr50/runnables/skills/KrakenAttackTask.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/runnables/skills/KrakenAttackTask.java b/src/main/java/com/gmail/nossr50/runnables/skills/KrakenAttackTask.java index 0ebc7fa32..80ee3a9ce 100644 --- a/src/main/java/com/gmail/nossr50/runnables/skills/KrakenAttackTask.java +++ b/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();