diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-03-03 11:24:52 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-03-03 11:24:52 -0300 |
commit | 19b9a384add03c7393f6645dc37e112bce70a46a (patch) | |
tree | 149d03c0090951834ddbbf777c81a836e0a4333c | |
parent | 7f97971c1585056790187999228bffeb4dda7b7c (diff) | |
download | hercules-19b9a384add03c7393f6645dc37e112bce70a46a.tar.gz hercules-19b9a384add03c7393f6645dc37e112bce70a46a.tar.bz2 hercules-19b9a384add03c7393f6645dc37e112bce70a46a.tar.xz hercules-19b9a384add03c7393f6645dc37e112bce70a46a.zip |
[TMW2] Prevent multiple boss monsters from being @spawn'ed at once.
Must preserve server resources.
-rw-r--r-- | src/map/atcommand.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) |