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:
@@ -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