Core/Conditions: Add missing code for CONDITION_TITLE
DB/Char: Add changes to character base Thanks to manuel and QAston for noticing
This commit is contained in:
1 parent
01fc695bad
commit
2d0e5e2e0c
2 files changed
+8
No files matched your search
@@ -274,6 +274,12 @@ bool Condition::Meets(ConditionSourceInfo& sourceInfo)
|
||||
condMeets = object->GetPhaseMask() & ConditionValue1;
|
||||
break;
|
||||
}
|
||||
case CONDITION_TITLE:
|
||||
{
|
||||
if (Player* player = object->ToPlayer())
|
||||
condMeets = player->HasTitle(ConditionValue1);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
condMeets = false;
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user