Yunfan Li
7d431dc796
Merge branch 'master' into Playerbot
2025-02-19 22:29:36 +08:00
Yunfan Li
1294d79764
Merge branch 'master' into Playerbot
2024-11-25 23:22:31 +08:00
Grimdhex
9874a47de5
refactor(Core): fix few static analysis ( #20566 )
...
* refactor(Core): fix few static analysis
* fix builds
* revert FacingInfo change and fix GraveYard ID use in a log
2024-11-24 17:02:32 -03:00
Nathan Handley
df33a57b78
feat(Core/Unit): New helper IsClass and script hook OnPlayerIsClass ( #18243 )
...
* Class Comparison Logic Encapsulation - Parity
* Add Context to IsClass
* Add Unit IsClass script hook
* Replace additional getClass with IsClass
* Update CanUseItem to replace getClass with IsClass
* Add separate context for pet vs ability
* Change Create to Init since not all referenced contexts are creation
* Align spacing in ClassContext
* Drop context on LFGManager max power
* Update IsClass context that wraps around Missle Barrage
* Rename context for swapping weapons
* Be more specific than CLASS_CONTEXT_TALENT
* Remove duplicate context
* Moved IsClass Hook to Player
* Removed unused parameter in virtual base function
* Added maybe_unused to IsClass virtual in order to compile
To match the override signature, the virtual base needs to include the parameter in question, so using [maybe_unused] to signal to the compiler to allow it
* Remove extra blank line
* Add ABILITY_REACTIVE context
* Add context for PET_CHARM
* Remove explicit nullopt check per review
* Code Readability - Change if to if else in pet
Due to the return pattern, this doesn't change functionality in any way
* Add OnPlayer to disambiguate
---------
Co-authored-by: NathanHandley <nathanhandley@protonmail.com >
2024-02-10 12:25:00 -03:00
ZhengPeiRu21
80c608df4f
Merge branch 'azerothcore:master' into Playerbot
2022-10-02 10:46:28 -06:00
M'Dic
967f8ce6d6
update (core): Startup console capitalizations ( #13195 )
2022-10-01 13:09:34 -04:00
ZhengPeiRu21
aa1705d6c5
Merge branch 'azerothcore:master' into Playerbot
2022-09-07 09:35:58 -06:00
ZhengPeiRu21
80e6a6d781
feat(Core): OnBeforeChooseGraveyard Hook ( #12860 )
2022-09-06 15:47:37 -03:00
ZhengPeiRu21
8b0ef0b5a0
Merge branch 'azerothcore:master' into Playerbot
2022-04-22 09:13:49 -06:00
Kitzunu
1501445b0a
chore(Core/Misc): nullptr cleanup ( #11467 )
2022-04-21 19:17:20 +02:00
郑佩茹
60f11b3671
Merge branch 'master' into Playerbot
...
# Conflicts:
# apps/ci/ci-install-modules.sh
# src/common/Collision/Management/MMapMgr.cpp
# src/common/Debugging/Errors.h
# src/server/game/AI/SmartScripts/SmartScript.cpp
# src/server/game/Battlegrounds/Arena.cpp
# src/server/game/Battlegrounds/ArenaScore.h
# src/server/game/Battlegrounds/Battleground.cpp
# src/server/game/Battlegrounds/BattlegroundMgr.cpp
# src/server/game/Battlegrounds/BattlegroundMgr.h
# src/server/game/Battlegrounds/BattlegroundQueue.cpp
# src/server/game/Battlegrounds/BattlegroundQueue.h
# src/server/game/Battlegrounds/Zones/BattlegroundAB.h
# src/server/game/Battlegrounds/Zones/BattlegroundEY.h
# src/server/game/Battlegrounds/Zones/BattlegroundIC.h
# src/server/game/Conditions/ConditionMgr.cpp
# src/server/game/DataStores/M2Stores.cpp
# src/server/game/DungeonFinding/LFGMgr.cpp
# src/server/game/Entities/Creature/Creature.cpp
# src/server/game/Entities/Creature/CreatureData.h
# src/server/game/Entities/GameObject/GameObject.cpp
# src/server/game/Entities/GameObject/GameObject.h
# src/server/game/Entities/Player/Player.cpp
# src/server/game/Entities/Player/Player.h
# src/server/game/Entities/Player/PlayerStorage.cpp
# src/server/game/Entities/Unit/Unit.cpp
# src/server/game/Entities/Unit/Unit.h
# src/server/game/Globals/ObjectMgr.cpp
# src/server/game/Groups/Group.cpp
# src/server/game/Groups/Group.h
# src/server/game/Guilds/Guild.cpp
# src/server/game/Guilds/Guild.h
# src/server/game/Handlers/BattleGroundHandler.cpp
# src/server/game/Handlers/CharacterHandler.cpp
# src/server/game/Scripting/ScriptDefines/BGScript.cpp
# src/server/game/Scripting/ScriptDefines/DatabaseScript.cpp
# src/server/game/Scripting/ScriptDefines/PlayerScript.cpp
# src/server/game/Scripting/ScriptDefines/ServerScript.cpp
# src/server/game/Scripting/ScriptMgr.cpp
# src/server/game/Scripting/ScriptMgrMacros.h
# src/server/game/Server/Packets/MiscPackets.cpp
# src/server/game/Server/Packets/MiscPackets.h
# src/server/game/Server/WorldSession.cpp
# src/server/game/Spells/SpellEffects.cpp
# src/server/game/World/IWorld.h
# src/server/game/World/World.cpp
# src/server/game/World/World.h
# src/server/scripts/Commands/cs_npc.cpp
# src/server/scripts/Commands/cs_server.cpp
# src/server/scripts/EasternKingdoms/BlackrockMountain/BlackwingLair/boss_nefarian.cpp
# src/server/scripts/EasternKingdoms/BlackrockMountain/BlackwingLair/instance_blackwing_lair.cpp
# src/server/scripts/EasternKingdoms/BlackrockMountain/MoltenCore/boss_ragnaros.cpp
# src/server/scripts/EasternKingdoms/ShadowfangKeep/boss_apothecary_hummel.cpp
# src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp
# src/server/scripts/EasternKingdoms/ShadowfangKeep/shadowfang_keep.h
# src/server/scripts/Kalimdor/CavernsOfTime/CullingOfStratholme/culling_of_stratholme.cpp
2022-03-21 13:57:37 -06:00
UltraNix
12d41d1314
Big update.
2022-03-12 22:28:00 +01:00
Bogir[rus]
75439773d0
fix and bringing to a unified style warnings of server loading logs to be more visible at server startup ( #10970 )
2022-03-12 04:57:26 -03:00
Kargatum
de13bf426e
feat(Core/DBLayer): replace char const* to std::string_view ( #10211 )
...
* feat(Core/DBLayer): replace `char const*` to `std::string_view`
* CString
* 1
* chore(Core/Misc): code cleanup
* cl
* db fix
* fmt style sql
* to fmt
* py
* del old
* 1
* 2
* 3
* 1
* 1
2022-02-05 00:37:11 +01:00
Kargatum
5969df4e30
refactor(Core/Logging): switch to fmt style for LOG_ ( #10366 )
...
* feat(Core/Common): add support fmt style for ASSERT and ABORT
* correct CheckCompactArrayMaskOverflow
* 1
* Update src/server/game/Spells/Spell.cpp
* rework logging
* add fmt replace logs
* logging
* FMT_LOG_
* settings
* fix startup
* 1
* 2
* 3
* 4
* 5
* fmt::print
* to fmt
2022-01-27 16:44:41 +01:00
Kargatum
f62664c987
refactor(Core/Misc): headers cleanup ( #9259 )
2021-11-22 17:24:39 +07:00
Skjalf
747a2a4f0e
fix(Core/Graveyards): rework the graveyard selection logic to allow l… ( #8022 )
2021-10-13 20:07:19 +02:00
Skjalf
29c94e5455
fix(Core/Graveyard): prevent non-death knights from getting ported to… ( #8206 )
2021-10-07 13:07:23 +02:00
Kargatum
52aa0e9966
feat(License): add new headers information about license ( #7941 )
...
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com >
2021-09-30 13:40:52 +07:00
Kitzunu
2f449326e0
refactor(Core): Rename ...Manager to ...Mgr ( #6910 )
...
* Rename MapManager.h to MapMgr.h
* Rename BanManager.h to BanMgr.h
* Rename MapManager.cpp to MapMgr.cpp
* Rename BanManager.cpp to BanMgr.cpp
* Rename MapRefManager.h to MapRefMgr.h
* Rename ThreatManager.h to ThreatMgr.h
* Rename GridRefManager.h to GridRefMgr.h
* Rename ThreatManager.cpp to ThreatMgr.cpp
* Rename GroupRefManager.h to GroupRefMgr.h
* Rename HostileRefManager.h to HostileRefMgr.h
* Rename HostileRefManager.cpp to HostileRefMgr.cpp
* Rename MMapManager.h to MMapMgr.h
* Rename FollowerRefManager.h to FollowerRefMgr.h
* Rename VMapManager2.h to VMapMgr2.h
* Rename IVMapManager.h to IVMapMgr.h
* Rename MMapManager.cpp to MMapMgr.cpp
* Rename VMapManager2.cpp to VMapMgr2.cpp
* Rename RefManager.h to RefMgr.h
* Rename WaypointManager.h to WaypointMgr.h
* Rename WaypointManager.cpp to WaypointMgr.cpp
* Rename MPQManager.h to MPQMgr.h
* Rename MPQManager.cpp to MPQMgr.cpp
* Rename IMMAPManager.h to IMMAPMgr.h
* fix build
* Update Main.cpp
* chore(Core/Misc): Remove toxic language
* Revert "chore(Core/Misc): Remove toxic language"
* fix build
* build
2021-09-15 17:50:28 +02:00
UltraNix
a8c0a2cc89
fix(Core/Movement): ( #7008 )
...
- Get zone/area IDs from vmap data in the liquid update
- Add new method Map::getFullVMapDataForPosition to get area info and liquid info in a single vmap lookup
- Adjust GetZoneId/GetAreaId on WorldObject to always return these cached fields.
- Clean up liquid state handling on Unit and Player
- Implemented getting area id from gameobject spawns.
- Removed old core related to getting movement flags dependent on environment.
- Movement flags are now processed more precisely and dynamically.
Original source: TrinityCore.
- Closes #5086
- Updates #2208 .
2021-08-25 12:41:20 +02:00
Kargatum
9ac6fddcae
feat(Core/Database): port TrinityCore database API ( #5611 )
2021-06-22 06:21:07 +02:00
Kargatum
5787d00d54
chore(Core/Logging): replace most server loggers ( #5726 )
...
* chore(Core/Logging): replace most server loggers
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com >
2021-06-21 03:07:12 +02:00
Francesco Borzì
466cdb68d6
refactor(Core): code cleanup (part 2) ( #6374 )
2021-06-16 20:40:42 +02:00
Kargatum
4af4cbd3d9
feat(Core/Logging): rework logging ( #4692 )
...
* feat(Core/Logging): rework logging
* correct level for sql.sql
* del unused config options
* Correct build
* correct after merge
* whitespace
20:29:37 1. 'Player.cpp'. Replace (1)
20:29:37 2. 'ObjectMgr.cpp'. Replace (3)
* 1
* correct logging
* correct affter merge
* 1
* 2
* LOG_LEVEL_WARN
* #include "AppenderDB.h"
* 3
* 4
* 5
* 1. 'WorldSocket.cpp'. Replace (1)
* 6
* 1
2021-04-17 11:20:07 +02:00
Kitzunu
28f1dc5c0c
refactor(Core): replace NULL with nullptr ( #4593 )
2021-03-02 01:34:20 +01:00
Kitzunu
dbc0ff6554
refactor(Core): sort #includes alphabetically ( #4579 )
2021-02-24 22:34:42 +01:00
Kitzunu
da4edd547d
chore(core): remove malformed whitespaces ( #4244 )
...
* from https://www.codefactor.io/repository/github/azerothcore/azerothcore-wotlk/issues?category=Style&groupId=838&lang=5&page=75
2021-01-10 14:27:55 +01:00
Kargatum
a2b26272d2
refactor(Core/Game): restyle game lib with astyle ( #3466 )
2020-10-12 10:08:15 +02:00
Kitzunu
1f89282b22
refactor(Core): NULL -> nullptr ( #3275 )
...
* NULL to nullptr
* NULL to nullptr
* NULL to nullptr
* NULL to nullptr
* NULL to nullptr
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com >
Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com >
2020-08-31 11:55:09 +02:00
Kargatum
833611f1c5
feat(Core/DBC): rework load DBC ( #3002 )
...
* Move DBC load system from TC
* Add db tables for all dbc
* Support override data from db
* Support override spells from db (#2994 )
2020-07-22 08:43:16 +02:00
Kargatum
4a8f1de538
feat(Core/Misc): remove and replace ACE_Singleton ( #2418 )
2019-12-21 00:29:29 +07:00
WiZZy
69792b21c0
refactor(DB/world): graveyard_zone ( #1599 )
2019-03-23 00:01:43 +03:00
Kargatum
1a9f8dfc0c
Core/DBC Move WorldSafeLocs.dbc storage to DB ( #932 )
2019-01-08 09:37:31 +03:00