From 369b5c2921ad76734cde9a2f1863e747dfdcce9e Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 29 Jan 2023 15:26:55 -0500 Subject: [PATCH] [Bug] Fixing % based mob see invis (#2802) This was preventing anything other than 0 or 1 to be passed, but per the current design, the see_invis can be anything from 0 to MAX 25499, which can give you level 254 invis. See design notes in Mob::GetSeeInvisibleLevelFromNPCStat. --- zone/zonedb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/zonedb.cpp b/zone/zonedb.cpp index d1e22ce1f..7145ce8ea 100755 --- a/zone/zonedb.cpp +++ b/zone/zonedb.cpp @@ -2094,7 +2094,7 @@ const NPCType *ZoneDatabase::LoadNPCTypesData(uint32 npc_type_id, bool bulk_load } } - t->see_invis = n.see_invis != 0; + t->see_invis = n.see_invis; t->see_invis_undead = n.see_invis_undead != 0; // Set see_invis_undead flag if (!RuleB(NPC, DisableLastNames) && !n.lastname.empty()) {