From 8770123bbd5a5ee19d1723b0381200dc4c0075a4 Mon Sep 17 00:00:00 2001 From: HoraK-FDF Date: Sat, 12 Nov 2022 03:45:39 +0100 Subject: mobinfo add2 --- src/map/atcommand.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/map/atcommand.cpp b/src/map/atcommand.cpp index 0de297f..b4faed5 100644 --- a/src/map/atcommand.cpp +++ b/src/map/atcommand.cpp @@ -1834,6 +1834,9 @@ ATCE atcommand_mobinfo(Session *s, dumb_ptr sd, if ((mob_id = wrap(static_cast(atoi(name.c_str())))) == Species()) mob_id = mobdb_searchname(name); + else + mob_id = mobdb_checkid(mob_id); + if (mob_id == Species()) return ATCE::EXIST; @@ -5452,7 +5455,7 @@ Map atcommand_info = 98, atcommand_model, "Change your hairstyle and hair color"_s}}, {"mobinfo"_s, {""_s, - 0, atcommand_mobinfo, + 20, atcommand_mobinfo, "Show stats of a monster."_s}}, {"summon"_s, {""_s, 50, atcommand_summon, -- cgit v1.2.3-60-g2f50