mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 08:39:42 +00:00
Rank condition should always fail if NPC is not in a faction
This commit is contained in:
parent
a7092ef2d7
commit
baa7a9160c
1 changed files with 5 additions and 0 deletions
|
@ -73,6 +73,11 @@ bool MWDialogue::Filter::testActor (const ESM::DialInfo& info) const
|
||||||
if (iter->second < info.mData.mRank)
|
if (iter->second < info.mData.mRank)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
else if (info.mData.mRank != -1)
|
||||||
|
{
|
||||||
|
// if there is a rank condition, but the NPC is not in a faction, always fail
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Gender
|
// Gender
|
||||||
if (!isCreature)
|
if (!isCreature)
|
||||||
|
|
Loading…
Reference in a new issue