From 1d8ddf843e3f2b07c365234553ae0bfefcff5ef7 Mon Sep 17 00:00:00 2001 From: Hello TMW Date: Sat, 28 Dec 2024 20:28:09 +0000 Subject: Fix really silly bug that caused slimes sometimes not being split. Fixes silly bug causing slimes failing to split in some cases. Reported-by: HoraK-FDF --- world/map/npc/functions/spawns_on_mobkill.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/world/map/npc/functions/spawns_on_mobkill.txt b/world/map/npc/functions/spawns_on_mobkill.txt index 0d9596db..fadb6cd1 100644 --- a/world/map/npc/functions/spawns_on_mobkill.txt +++ b/world/map/npc/functions/spawns_on_mobkill.txt @@ -65,7 +65,7 @@ function|script|spawn_mobs_around set .@mobID, getarg(3, -1); // Mob ID to spawn. set .@mobQTY, getarg(4, -1); // Amount. if ((.@map$ == "") || (.@mobX < 1) || (.@mobY < 1) || (.@mobID < 1002) || - (.@mobX > getmapmaxx(.@map$)) || (.@mobX > getmapmaxy(.@map$)) || + (.@mobX > getmapmaxx(.@map$)) || (.@mobY > getmapmaxy(.@map$)) || (.@mobQTY < 1)) // Invalid parameters given? goto L_Abort; // Yell and return if ((.@mobX > 1) && (.@mobY > 1) && (.@mobX < getmapmaxx(.@map$)) && -- cgit v1.2.3-70-g09d2