mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 16:41:29 +00:00
[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:
parent
bcc2e022dc
commit
369b5c2921
@ -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
|
t->see_invis_undead = n.see_invis_undead != 0; // Set see_invis_undead flag
|
||||||
|
|
||||||
if (!RuleB(NPC, DisableLastNames) && !n.lastname.empty()) {
|
if (!RuleB(NPC, DisableLastNames) && !n.lastname.empty()) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user