summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/soren/main.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/npc/soren/main.txt b/npc/soren/main.txt
index b9cead7a4..5e7963e80 100644
--- a/npc/soren/main.txt
+++ b/npc/soren/main.txt
@@ -95,6 +95,20 @@ OnTimer29000:
stopnpctimer; .st=0;
end;
}
+ if (Sp < MaxSp/100*15) {
+ npctalk l("Disarm process aborted: Insufficient mana to proceed.");
+ stopnpctimer; .st=0;
+ end;
+ }
+
+ // Penalty Handler
+ .@val=-5;
+ if (getvariableofnpc(.casterId, "Soren's Lake") == .casterId)
+ .@val=.@val-10;
+ if (getvariableofnpc(.casterId, "Soren's Dizmo") == .casterId)
+ .@val=.@val-10;
+
+ percentheal .@val, -15;
// Monster Gen
.@amount=rand(.st+1, .st+4);