mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[11077] Game event fixes and condition improvments.
* At game events table loading checked not only allowed event ids range but also event existance. * Renamed CONDITION_ACTIVE_EVENT -> CONDITION_ACTIVE_GAME_EVENT * Implemented new conditions: - CONDITION_NOT_ACTIVE_GAME_EVENT - CONDITION_ACTIVE_HOLIDAY - CONDITION_NOT_ACTIVE_HOLIDAY Recomended use holiday version where possible as more portable.
This commit is contained in:
parent
84dd2e4393
commit
2fd536fe43
9 changed files with 90 additions and 62 deletions
|
|
@ -319,7 +319,7 @@ bool AchievementCriteriaRequirement::Meets(uint32 criteria_id, Player const* sou
|
|||
case ACHIEVEMENT_CRITERIA_REQUIRE_S_DRUNK:
|
||||
return (uint32)Player::GetDrunkenstateByValue(source->GetDrunkValue()) >= drunk.state;
|
||||
case ACHIEVEMENT_CRITERIA_REQUIRE_HOLIDAY:
|
||||
return IsHolidayActive(HolidayIds(holiday.id));
|
||||
return sGameEventMgr.IsActiveHoliday(HolidayIds(holiday.id));
|
||||
case ACHIEVEMENT_CRITERIA_REQUIRE_BG_LOSS_TEAM_SCORE:
|
||||
{
|
||||
BattleGround* bg = source->GetBattleGround();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue