summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHello TMW <hello@themanaworld.org>2024-12-28 20:28:09 +0000
committerLed Mitz <smoothshifter@tuta.io>2024-12-28 20:28:09 +0000
commit1d8ddf843e3f2b07c365234553ae0bfefcff5ef7 (patch)
tree2c1b12d679322fbe4cbd9036918de189da1e44b2
parentbd3022c03a2b2869c1263dbec67c01f7b1d05544 (diff)
downloadserverdata-1d8ddf843e3f2b07c365234553ae0bfefcff5ef7.tar.gz
serverdata-1d8ddf843e3f2b07c365234553ae0bfefcff5ef7.tar.bz2
serverdata-1d8ddf843e3f2b07c365234553ae0bfefcff5ef7.tar.xz
serverdata-1d8ddf843e3f2b07c365234553ae0bfefcff5ef7.zip
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
-rw-r--r--world/map/npc/functions/spawns_on_mobkill.txt2
1 files changed, 1 insertions, 1 deletions
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$)) &&