[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.
This commit is contained in:
Michael 2023-01-29 15:26:55 -05:00 committed by GitHub
parent bcc2e022dc
commit 369b5c2921
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()) {