mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-26 22:45:15 -04:00
Handle DialInfo::mFactionLess (Bug #3380)
This commit is contained in:
parent
93b2f09224
commit
2ca7415708
@ -62,7 +62,15 @@ bool MWDialogue::Filter::testActor (const ESM::DialInfo& info) const
|
||||
}
|
||||
|
||||
// NPC faction
|
||||
if (!info.mFaction.empty())
|
||||
if (info.mFactionLess)
|
||||
{
|
||||
if (isCreature)
|
||||
return true;
|
||||
|
||||
if (!mActor.getClass().getPrimaryFaction(mActor).empty())
|
||||
return false;
|
||||
}
|
||||
else if (!info.mFaction.empty())
|
||||
{
|
||||
if (isCreature)
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user