From 8054dfe5c1f66cacca3d0d93a6479434d2240400 Mon Sep 17 00:00:00 2001 From: asuratva Date: Wed, 15 May 2024 12:25:43 +0530 Subject: updated itenplz fix to use mob flag instead of string comparison. More efficient. Credit to @Hello for figuring this out :) --- src/map/script-fun.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/script-fun.cpp b/src/map/script-fun.cpp index 8d5bf94..9346963 100644 --- a/src/map/script-fun.cpp +++ b/src/map/script-fun.cpp @@ -3735,9 +3735,9 @@ void builtin_issummon(ScriptState *st) { dumb_ptr md = map_id_is_mob(wrap(conv_num(st, &AARG(0)))); int val = 0; - if (md && md->name.contains_seq("Summon"_s)) + if (md) { - val = 1; + val |= (md->mode & MobMode::SUMMONED); } push_int(st->stack, val); -- cgit v1.2.3-70-g09d2