From c6dddd571035f7e35bbd40256be87a36ded98f8a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 11 Mar 2021 20:15:44 -0300 Subject: Try to fix the mobspawn and penalty bugs --- npc/029-0/mobs.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/npc/029-0/mobs.txt b/npc/029-0/mobs.txt index 73b1223ee..46287e58e 100644 --- a/npc/029-0/mobs.txt +++ b/npc/029-0/mobs.txt @@ -38,11 +38,16 @@ OnInit: end; function SFspawn { - .@am=($FIRESOFSTEAM > getarg(8) && !$@GM_OVERRIDE ? (getarg(6)*6/10) : getarg(6)); + .@am=($FIRESOFSTEAM > getarg(8) ? (getarg(6)*6/10) : getarg(6)); debugmes "Spawning %d/%d mobs on %s", .@am, getarg(6), getarg(0); areamonster(getarg(0), getarg(1), getarg(2), getarg(3), getarg(4), strmobinfo(1, getarg(5)), getarg(5), .@am, getarg(7)); + if ($FIRESOFSTEAM > getarg(8) && !$@FOS_RESPAWN[getarg(8)]) { + $@FOS_RESPAWN[getarg(8)]=true; + setmapflag(getarg(0), mf_nopenalty); + } + return; } -- cgit v1.2.3-60-g2f50