Skip to content

Commit

Permalink
[Bug] Fixing % based mob see invis (EQEmu#2802)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fryguy503 authored Jan 29, 2023
1 parent bcc2e02 commit 369b5c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zone/zonedb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 369b5c2

Please sign in to comment.