From 51e0b96adca8d1d79ce3af48e8ca42858ae4b7d2 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 4 Dec 2022 22:14:31 -0300 Subject: Fix vulnerability --- npc/003-0-1/professor.txt | 1 + npc/functions/rebirth.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/npc/003-0-1/professor.txt b/npc/003-0-1/professor.txt index 025b11568..c361c3184 100644 --- a/npc/003-0-1/professor.txt +++ b/npc/003-0-1/professor.txt @@ -47,6 +47,7 @@ OnTimer3100: end; OnSpeeching: + if (!playerattached()) end; if (ispcdead()) end; deltimer(.name$+"::OnSpeeching"); // safeguard // Max AFK time is determined as 30 minutes + 1 second every 10 minutes AFKed diff --git a/npc/functions/rebirth.txt b/npc/functions/rebirth.txt index d997c4c37..9a6d4cc41 100644 --- a/npc/functions/rebirth.txt +++ b/npc/functions/rebirth.txt @@ -28,7 +28,7 @@ function script ChooseTrait { rif(#TUTORIAL_DONE && !(PCBONUS & PCB_NOKNOCKBACK), l("Knockback Immunity")), PCB_NOKNOCKBACK, rif(REBIRTH && !(PCBONUS & PCB_SPLASHMASTER), l("AoE (not stackable)")), PCB_SPLASHMASTER, rif(REBIRTH && !(PCBONUS & PCB_RANGEMASTER), l("Atk Range +1")), PCB_RANGEMASTER, - rif(REBIRTH < 5 && !(PCBONUS & PCB_LEGENDARY), l("No penalty against Legendary mobs")), PCB_LEGENDARY; + rif(REBIRTH >= 5 && !(PCBONUS & PCB_LEGENDARY), l("No penalty against Legendary mobs")), PCB_LEGENDARY; if (@menuret == 0) return false; PCBONUS=PCBONUS|@menuret; return true; -- cgit v1.2.3-70-g09d2