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:
Nay
2012-04-08 12:56:18 +01:00
parent 01fc695bad
commit 2d0e5e2e0c
2 changed files with 8 additions and 0 deletions
@@ -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;