summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/fishing.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/npc/functions/fishing.txt b/npc/functions/fishing.txt
index 52f9fcc9a..48f83de3e 100644
--- a/npc/functions/fishing.txt
+++ b/npc/functions/fishing.txt
@@ -256,6 +256,16 @@ function script fishing {
return -5;
}
+ // This "hack" will prevent you from fishing at two spots (buggy)
+ // It'll cancel the previous fishing too, per logical rule.
+ if (@fishing_spot$ != "") {
+ deltimer "global fishing handler::OnCleanUp"; // cancel auto cleanup
+ deltimer "global fishing handler::OnBite";
+ fishing_cleanup(@fishing_spot$); // clean up manually
+ @fishing_spot$="";
+ dispbottom l("You left your fishing spot!");
+ return -4;
+ }
// begin fishing
narrator S_LAST_NEXT,