From 6735fc7b8b39796a20d4c811890a25f9e14a92dd Mon Sep 17 00:00:00 2001
From: Jesusaves <cpntb1@ymail.com>
Date: Tue, 25 Jan 2022 23:29:43 -0300
Subject: Boss Raid: Boss' skill duration is now less predictable and safe.
 (Previously, Benjamin Frost past level 50 could stunlock you forever)

---
 npc/001-13/main.txt | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/npc/001-13/main.txt b/npc/001-13/main.txt
index b96a59a48..ebdf97a16 100644
--- a/npc/001-13/main.txt
+++ b/npc/001-13/main.txt
@@ -127,6 +127,7 @@ OnPump:
 	if (@map$ != getmap()) end;
 	.@msg$=l("In all the mana worlds, I alone am feared.");
 	.@lv=$FYRAID_LV[@id];
+	.@t = min(45, 10+rand2(.@lv));
 
 	// Apply boss skill based on their name
 	if ($RAIDING_BOSS$ == "Xakabael the Dark") {
@@ -140,22 +141,22 @@ OnPump:
 	} else if ($RAIDING_BOSS$ == "Platyna the Red") {
 		.@msg$ = l("I, the rightful ruler, demand back this world! Tyranny!");
 		percentheal -1, -1;
-		SC_Bonus(10+.@lv, any(SC_BLIND, SC_POISON), 1);
+		SC_Bonus(.@t, any(SC_BLIND, SC_POISON), 1);
 	} else if ($RAIDING_BOSS$ == "Benjamin the Frost") {
 		.@msg$ = l("Stop on your tracks, unfair being! Freeze!");
-		SC_Bonus(10+.@lv, any(SC_FREEZE, SC_SLEEP, SC_SLEEP, SC_SLEEP), 1);
+		SC_Bonus(.@t, any(SC_FREEZE, SC_SLEEP, SC_SLEEP, SC_SLEEP), 1);
 	} else if ($RAIDING_BOSS$ == "Reid the Terrific") {
 		.@msg$ = l("There is no free speech. Censorship!");
-		SC_Bonus(10+.@lv, SC_SILENCE, 1);
+		SC_Bonus(.@t, SC_SILENCE, 1);
 	} else if ($RAIDING_BOSS$ == "Nu'Rem the Destroyer") {
 		.@msg$ = l("And then... There was a quake. And all life died. Bleed!");
-		SC_Bonus(10+.@lv, SC_BLOODING, 1);
+		SC_Bonus(.@t, SC_BLOODING, 1);
 	} else if ($RAIDING_BOSS$ == "Golbenez the Cruel") {
 		.@msg$ = l("Puny mortal, do your best to entertain me! Curse!");
-		SC_Bonus(10+.@lv, SC_CURSE, 1);
+		SC_Bonus(.@t, SC_CURSE, 1);
 	} else if ($RAIDING_BOSS$ == "King of Typos") {
 		.@msg$ = l("The problem with typos is - unpredictable side effects.");
-		SC_Bonus(10+.@lv, any(SC_SILENCE, SC_CURSE, SC_FREEZE, SC_BLOODING, SC_BLIND, SC_POISON, SC_DPOISON, SC_POISON, SC_BURNING, SC_SLEEP), 1);
+		SC_Bonus(.@t, any(SC_SILENCE, SC_CURSE, SC_FREEZE, SC_BLOODING, SC_BLIND, SC_POISON, SC_DPOISON, SC_POISON, SC_BURNING, SC_SLEEP), 1);
 	} else {
 		consolewarn("Unknown raiding boss: %s. No skill will be used.", $RAIDING_BOSS$);
 	}
-- 
cgit v1.2.3-70-g09d2