diff options
author | Haru <haru@dotalux.com> | 2020-02-09 21:18:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-09 21:18:26 +0100 |
commit | 481d92bfa0fac1320aebf0ab4f4ceb8365fa3ff3 (patch) | |
tree | 807314fa875ca53ab1508f347bcf5ad12e9f3348 /src/map/map.c | |
parent | 9e68350a054d5ec181a40528728d8de185a4f43c (diff) | |
parent | d84aee4cd917fd1a151d7ec0b3a2d7e32df02441 (diff) | |
download | hercules-481d92bfa0fac1320aebf0ab4f4ceb8365fa3ff3.tar.gz hercules-481d92bfa0fac1320aebf0ab4f4ceb8365fa3ff3.tar.bz2 hercules-481d92bfa0fac1320aebf0ab4f4ceb8365fa3ff3.tar.xz hercules-481d92bfa0fac1320aebf0ab4f4ceb8365fa3ff3.zip |
Merge pull request #2590 from Kenpachi2k13/issue#2530
Change unload NPC behavior to kill mobs that were spawned by unloaded NPC (non-permanent monster spawns) [Issue #2530]
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c index 9a45c4d21..8b52fc761 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -6092,7 +6092,7 @@ static int cleanup_sub(struct block_list *bl, va_list ap) map->quit(BL_UCAST(BL_PC, bl)); break; case BL_NPC: - npc->unload(BL_UCAST(BL_NPC, bl), false); + npc->unload(BL_UCAST(BL_NPC, bl), false, true); break; case BL_MOB: unit->free(bl,CLR_OUTSIGHT); |