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

View File

@@ -1932,6 +1932,8 @@ CREATE TABLE `lag_reports` (
`posX` float NOT NULL DEFAULT '0',
`posY` float NOT NULL DEFAULT '0',
`posZ` float NOT NULL DEFAULT '0',
`latency` int(10) unsigned NOT NULL DEFAULT '0',
`createTime` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`reportId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;

View File

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