From 19b9a384add03c7393f6645dc37e112bce70a46a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 3 Mar 2021 11:24:52 -0300 Subject: [TMW2] Prevent multiple boss monsters from being @spawn'ed at once. Must preserve server resources. --- src/map/atcommand.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/map/atcommand.c b/src/map/atcommand.c index c55a4a1b1..6dae53720 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -2146,6 +2146,10 @@ ACMD(monster) if (battle_config.atc_spawn_quantity_limit && number > battle_config.atc_spawn_quantity_limit) number = battle_config.atc_spawn_quantity_limit; + // [TMW2] Truncate boss monsters spawn + if (mob->db_data[mob_id]->status.mode & MD_BOSS) + number = 1; + if (strcmpi(info->command, "monstersmall") == 0) size = SZ_MEDIUM; else if (strcmpi(info->command, "monsterbig") == 0) -- cgit v1.2.3-60-g2f50