|
|
@ -155,10 +155,13 @@ bool MWDialogue::Filter::testDisposition (const ESM::DialInfo& info, bool invert
|
|
|
|
bool MWDialogue::Filter::testSelectStruct (const SelectWrapper& select) const
|
|
|
|
bool MWDialogue::Filter::testSelectStruct (const SelectWrapper& select) const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (select.isNpcOnly() && (mActor.getTypeName() != typeid (ESM::NPC).name()))
|
|
|
|
if (select.isNpcOnly() && (mActor.getTypeName() != typeid (ESM::NPC).name()))
|
|
|
|
// If the actor is a creature, we do not test the conditions applicable
|
|
|
|
// If the actor is a creature, we pass all conditions only applicable to NPCs.
|
|
|
|
// only to NPCs.
|
|
|
|
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (select.getFunction() == SelectWrapper::Function_Choice && mChoice == -1)
|
|
|
|
|
|
|
|
// If not currently in a choice, we reject all conditions that test against choices.
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
switch (select.getType())
|
|
|
|
switch (select.getType())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
case SelectWrapper::Type_None: return true;
|
|
|
|
case SelectWrapper::Type_None: return true;
|
|
|
|