Commit Graph

387 Commits

Author SHA1 Message Date
ModoX
cbef6f7860 Core/Conditions: Added private object to StaticConditionTypeData and defined CONDITION_STRING_ID as valid ConditionType 2024-05-22 19:36:02 +02:00
Shauren
325cfd047d Core/Conditions: Added startup error log for conditions using invalid effect index on CONDITION_AURA 2024-04-13 16:16:22 +02:00
Meji
47e4bf06d3 Core/Conditions: Fixed evaluation of CurrentPvpFaction outside arenas or battlegrounds (#29882) 2024-04-01 20:32:08 +02:00
Jeremy
be11f42a16 Core/Battlegrounds: Move to scripts (#29799)
* Introduce new BattlegroundScript class for map/bg specific scripts
* Remove all sub, zone specific, battleground classes except Arena
* Move all bg zone scripts to new BattlegroundScripts class in script folder
* Remove ZoneScript from Battleground class
* Remove some unused hooks from Battleground
2024-03-28 19:29:22 +01:00
Shauren
39263027d4 Core/Conditions: Extend circular references check for player condition conditions to also handle two different conditions referencing each other 2024-03-27 22:17:25 +01:00
Meji
4913d027bf Core/Conditions: Added CONDITION_SOURCE_TYPE_PLAYER_CONDITION (#29832) 2024-03-27 21:38:08 +01:00
Christyan
7b88faf672 Core/Conditions: Fixed typo in worldstate expression evaluation (#29639) 2024-02-03 13:30:15 +01:00
Shauren
a4a4d010a0 Core: Updated to 10.2.5 2024-01-21 22:25:10 +01:00
Shauren
151dd67e2e Core/Conditions: Added stringid condition type 2024-01-12 12:40:20 +01:00
Shauren
0b5406dd88 Core/Conditions: Refactor ConditionMgr internals to get rid of separate containers for some condition source types 2024-01-11 20:56:24 +01:00
Jeremy
1ef0c04520 Core/Battlegrounds: Clean up some Team/TeamId parameters to use enums instead of raw integer types (#29535)
* Fix criteria data type bg loss team score
2023-12-29 14:12:15 +01:00
ModoX
b1c5e3809c Scripts/Conditions: Fallback to other targets to get map if first target is invalid
* fixes crash in Ulduar when reaching Assembly of Iron / Kologarn / Algalon area
2023-11-26 22:19:23 +01:00
Shauren
b888b1b09f Core/Calendar: Implement different timezone support for ingame calendar
Closes #8390
Closes #29427
2023-11-21 12:25:22 +01:00
Shauren
f4e4e62aea Core/Conditions: Allow battleground maps to use CONDITION_INSTANCE_INFO 2023-11-05 20:49:05 +01:00
Meji
9f68215bb6 Core/Misc: Use DB2Manager::IsInArea for area-related criterias and conditions (#29359) 2023-10-13 21:09:02 +02:00
Shauren
0ce96adb7a Core/Objects: Treat areas that have ParentAreaID filled but dont have IsSubzone flag as zones instead of areas 2023-10-06 20:22:14 +02:00
Shauren
98007f859b Core/Misc: Turn ChrSpecialization into enum class 2023-08-07 00:05:36 +02:00
Shauren
054723241e Core/Misc: Reduce number of player spec hardcoded checks 2023-08-07 00:05:36 +02:00
ModoX
f28b4eed3d Core/Condition: Implemented condition CONDITION_PRIVATE_OBJECT (#29136) 2023-07-21 17:54:27 +02:00
Shauren
81f0bf9525 Core/Conditions: Replaced Player argument to world state expression checking with Map 2023-06-26 22:53:07 +02:00
Jeremy
c1df555e16 Core/Graveyards: Drop Faction column and replace it with conditions (#28965) 2023-06-01 02:33:46 +02:00
Meji
0327f3ede3 Core/Conditions: Fix log typo 2023-04-08 21:49:33 +02:00
ModoX
36044a9470 Core/Creature: Added possibility to give creatures multiple gossip menu ids and control them via conditions (#28159) 2023-04-05 23:49:46 +02:00
Meji
97d413c9b4 Core/Spawns: Allow spawn groups with MANUAL_SPAWN flag to automatically despawn if conditions are not met (#28778) 2023-01-29 19:50:34 +01:00
Meji
03918978c1 Core/Players: Several currency fixes and improvements (#28676) 2023-01-29 17:42:23 +01:00
Shauren
d791afae1d Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard compatible api) 2023-01-08 21:16:53 +01:00
Shauren
0cc5ab8372 Core/Players: Implemented new talent system 2022-12-16 22:44:55 +01:00
Shauren
e98e1283ea Core: Updated to 10.0.2 2022-12-04 15:13:20 +01:00
Shauren
de7c03c838 Core/Spells: Extended mechanic mask to uint64 2022-12-04 15:07:36 +01:00
Shauren
2c79ce6791 Core/Conditions: Add const to condition checking functions 2022-10-24 00:15:43 +02:00
Shauren
49709e4273 Core/Gossip: Remove gossip menu option fallback code, all menus are now required to have options defined instead of trying to get them from menuid = 0 2022-10-09 18:43:35 +02:00
Meji
3a56b914c6 Core/Conditions: Added CONDITION_PLAYER_CONDITION to integrate conditions with db2 data (#28169) 2022-08-02 21:18:27 +02:00
Shauren
cb99b08b86 Core/Players: Fixed ExploredZones size and PLAYER_EXPLORED_ZONES_SIZE desync 2022-07-17 20:23:37 +02:00
Shauren
f4951f9031 Core/DataStores: Named WorldStateExpression function 38 2022-07-13 20:51:20 +02:00
Shauren
490b6f88d4 Core/Conditions: Implemented PlayerCondition::CurrentPvpFaction 2022-07-08 00:35:24 +02:00
Shauren
7029b78cab Core/WorldStates: Migrate conditions and criteria to new worldstate api 2022-06-26 12:18:45 +02:00
Shauren
743308267f Core/DataStores: Updated WorldStateExpression function enum to 9.2.5 2022-06-26 00:00:34 +02:00
Shauren
5d27939667 Core/Conditions: Implemented conditions for spawn groups 2022-06-24 22:20:34 +02:00
Shauren
33c3ea1013 Core/Conditions: Fixed CONDITION_AURA to allow effect index greater than 2 2022-06-24 21:36:08 +02:00
Antonio Martín Berti
bd401af091 Core/Conditions: Added CONDITION_SCENE_IN_PROGRESS, useful for cases where you need phase things when a scene is in progress. (#28011) 2022-06-21 23:26:07 +02:00
Antonio Martín Berti
5002e5d352 Core/Conditions: Added CONDITION_SCENARIO_STEP (#27928) 2022-05-09 19:33:55 +02:00
Shauren
d800c87137 Core/Misc: Remove implicit conversions from RaceMask class, fixes racemask check failing during loading from db 2022-05-06 18:45:51 +02:00
Shauren
7260fcb5c6 Core/Conditions: Fixed conditions not working for area auras
(cherry picked from commit 8693ee5695)
2022-03-20 00:29:35 +01:00
Kargatum
373ed8f46b Core: whitespace cleanup, reduce double blank line to single (#25795)
* Core/Misc: fix double empty line

* worldserver.conf

(cherry picked from commit a32b6b8ac4)
2022-03-05 20:07:57 +01:00
Shauren
5bf9a01648 Core/Conditions: Add missing null checks for PlayerCondition 2022-02-08 15:32:12 +01:00
Shauren
7efc3df815 Core/Conditions: Fixed PlayerCondition checking after std::arrayification of DB2Structures 2022-02-08 14:50:44 +01:00
Antonio Martín Berti
b5a67cf17d Core/Conditions: Implemented new condition type CONDITION_BATTLE_PET_COUNT to check how many copies of a battle pet are collected (#27689)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2022-02-06 18:57:19 +01:00
Shauren
88659dcebf Core/Gossip: Sync naming and db structure with 3.3.5 2022-01-26 23:49:42 +01:00
Treeston
fa8ab6eb98 Core/Common: Move old-style pointer+size HexStr methods to Trinity::Impl where they can't hurt anyone
(cherry picked from commit 7b8b999516)
2022-01-26 14:36:42 +01:00
Peter Keresztes Schmidt
44ea32ace4 Build: Enable -Wimplicit-fallthrough on clang (#25056)
* Misc: Use [[fallthrough]] attribute instead of comment to mark intentional fallthroughs

Related: #25006

* Misc: Add some missing breaks (no-ops) to satisfy clang

Related: #25006
Closes #25055

* Build: Enable -Wimplicit-fallthrough on clang

Closes #25006
2022-01-23 22:16:15 +01:00