diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/map/script-fun.cpp | 4 |
1 files 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<mob_data> md = map_id_is_mob(wrap<BlockId>(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<ScriptDataInt>(st->stack, val); |