silviu20092
3988e9581d
feat(core): add hooks for applying item mods ( #18760 )
2024-05-18 10:02:57 +02: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
Winfidonarleyan
e90d7a2f92
chore(Core/Misc): sort includes ( #17776 )
...
* chore(Cleanup): sort includes
* fix build
* fix build again
2023-11-18 17:51:26 +01:00
Kitzunu
f757e93da5
refactor(Core/Misc): Make DeathState enum class ( #17607 )
2023-10-28 10:54:03 +02:00
Ludwig
f633eb8592
fix(Core/Achivement): Implement ACHIEVEMENT_FLAG_AVERAGE ( #17263 )
2023-09-21 18:56:28 +02:00
Kitzunu
1ed1cd0c73
fix(Core/Player): Allow to swap bags when they are filled ( #17086 )
2023-09-05 06:35:15 -03:00
Francesco Borzì
5d01b700fd
refactor(Core): remove unused imports ( #17094 )
2023-08-28 13:39:43 +02:00
pvp100
856d17ac36
fix(Core/MiscHandler): Dungeon requirements Message ( #16701 )
...
* fix(DB/Gameobject): fix towercanno error location in Flamewatch Tower
adjusted wintergrasp towercanno position
* fix(Core/MiscHandler): dungeon access requirements message parameter
requirements level variable always 0
requirements item cannot get from locale
Co-authored-by: aviar <aviar@sina.com>
* revert: random edits
---------
Co-authored-by: aviar <aviar@sina.com>
Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
2023-08-25 09:16:47 -03:00
Kitzunu
a6980e654a
fix(Core/Player): Logic ( #16305 )
2023-05-24 13:59:43 -03:00
Kitzunu
be48e3c249
fix(Core/Player): Instance.IgnoreRaid kicking people out ( #16306 )
...
* closes https://github.com/azerothcore/azerothcore-wotlk/issues/16201
2023-05-18 22:11:53 +02:00
M'Dic
7e58650cf5
revert(Core): ChrRace.dbc full implementation ( #16114 )
...
* revert (core): ChrRace.dbc full implementation
we revert this due to several issues arrising. Although the dbc reading is done in full and correctly. Azerothcore relied on the original handling (althought not propper) for so long that there is
* revert
* Update remove_charrace_dbc.sql
* Update remove_charrace_dbc.sql
* Update remove_charrace_dbc.sql
2023-04-29 08:23:11 -03:00
M'Dic
3eae4c5713
fix(core/dbc): improve ChrRace DBC handling ( #14843 )
...
Cherry pick of https://github.com/TrinityCore/TrinityCore/pull/24508
Co-authored-by: HelloKitty <5829095+HelloKitty@users.noreply.github.com>
2023-04-28 01:29:33 +02:00
ZhengPeiRu21
1e26cdbee9
fix(Core): Save bonus talent points to DB ( #14099 )
...
* fix(Core): Save bonus talent points to DB
* fix(Core): Save bonus talent points to DB
* Oxford comma in comment
2023-04-22 10:09:18 -03:00
Kitzunu
9eb4b3a336
feat(Core/Character): Implement profanity_name ( #15156 )
2023-03-04 17:43:14 -03:00
Kitzunu
f039836a2f
chore(Core/Misc): Change all TODO to doxygen comment ( #14966 )
2023-02-12 10:05:34 -03:00
Kitzunu
4870b14b1f
refactor(Core/Object): getLevel() -> GetLevel() ( #14122 )
...
* refactor(Core/Object): getLevel() -> GetLevel()
* fix build and sneak some doxygen in
* codeSTLE
* codestyle
2022-12-31 17:39:23 +01:00
UltraNix
a2ffce3e51
fix(Core/Dungeons): Fixed displaying custom requirement texts from `d… ( #14125 )
...
fix(Core/Dungeons): Fixed displaying custom requirement texts from `dungeon_access_requirement`.
Fixes #14069
2022-12-11 08:58:48 -03:00
UltraNix
8f697bdaee
fix(Core/Items): Item sell prices are affected by durability loss. So… ( #13801 )
...
...urce: Vmangos.
2022-11-21 18:51:40 -03:00
ZhengPeiRu21
42c5028018
fix(Core): Correct Rest Bonus Formula ( #13173 )
2022-11-11 23:32:02 -03:00
Skjalf
6177ce4688
feat(Core/Scripting): Create OnStoreNewItem() hook ( #13725 )
2022-11-07 00:26:47 -03:00
Skjalf
e64138314c
fix(Core/Scripting): Also call the OnLootItem() hook on master looted… ( #13683 )
...
fix(Core/Scripting): Also call the OnLootItem() hook on master looted items
2022-11-03 21:49:12 -03:00
M'Dic
2e6f6e26da
Add (core\db): Support for Homebind Orientation ( #13389 )
...
Add (core\db) Support for Homebind Orientation
2022-10-12 14:39:02 -04:00
UltraNix
1c6eab5856
fix(Core): Crashfix. ( #12643 )
2022-08-07 18:22:12 -03:00
UltraNix
572a680c16
fix(Core/Movement): Improvements to taxi flight movement generator: ( #12347 )
...
Changed multi-segment taxi paths to fly nearby flight masters along the way, not directly through them.
Taxi cost on multi-segment paths is now charged per segment when it is started.
Properly send taxi node status on login, as well as if the taxi master is out of range.
Apply reputation discount to all points in multi-segment paths.
Properly clean up list of taxi destinations upon arrival at final node.
Teleport players to the destination taxi node location instead of their current ground position.
Don't start a spline with just 1 point in FlightPathMovementGenerator
Source: TrinityCore.
2022-08-01 23:21:11 -03:00
UltraNix
914ea4f9c3
fix(Core/Items): Properly transfer enchantment durations from old to … ( #11828 )
...
fix(Core/Items): Properly transfer enchantment durations from old to newly created/summoned items.
Fixes #11687
2022-05-23 04:27:53 -03:00
Kitzunu
1501445b0a
chore(Core/Misc): nullptr cleanup ( #11467 )
2022-04-21 19:17:20 +02:00
Kitzunu
b709a22ddc
feat(Core/Players): PlayerFlag helpers ( #11294 )
...
* feat(Core/Players): PlayerFlag helpers
* Update Player.h
* fix build
2022-04-05 18:53:50 +02:00
Kitzunu
535c7451a2
feat(Core/Unit): New helpers for DynamicFlags ( #11230 )
...
* feat(Core/Unit): New helpers for DynamicFlags
* cherry-pick commit (d611925dc7 )
Co-Authored-By: Shauren <shauren.trinity@gmail.com>
* oopsie
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2022-04-01 07:14:29 -03:00
Kitzunu
856aed6fc6
feat(Core/Unit): New helpers for UnitFlag and UnitFlag2 ( #11227 )
2022-03-30 07:59:42 -03:00
UltraNix
e5f9c8c0af
fix(Core/Mails): Do not load expired mails from database. ( #10917 )
2022-03-18 18:13:17 -03:00
UltraNix
73957b95f6
fix(Core/Mail): do not show expired mails in packets ( #10560 )
...
Fixed #5920
2022-03-01 13:57:37 +01:00
Kitzunu
455899dc75
fix(Core/Misc): Change const to be after type name ( #10591 )
2022-02-14 16:05:45 -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
Skjalf
c45c23ffe7
fix(Core/Player): Align SaveSeasonQuestStatus() with TrinityCore ( #10503 )
2022-02-02 21:14:02 -03: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
8b7df23f06
feat(Core/Time): Implement saparated manager for game time ( #8630 )
2022-01-24 17:55:00 +07:00
Francesco Borzì
abc56842c4
refactor(Core): remove unused imports ( #10296 )
2022-01-22 11:21:35 +01:00
Kargatum
6d7f58e6ed
feat(Core/Common): delete old Tokenizer ( #10121 )
2022-01-21 14:59:05 +07:00
Kitzunu
ac99eb48e1
refactor(Core/Misc): abs() to std::abs() ( #9789 )
2021-12-31 19:29:39 -03:00
Kargatum
e12494d993
feat(Core/Pets): Management refactoring ( #9712 )
...
* feat(Core/Pets): rework managment
* 1
* 2
* 3
* 4
* 5
* cs pet
* check before ressurect
* pet DECLINED_NAMES
* display
- https://github.com/azerothcore/azerothcore-wotlk/issues/9297
* ArenaSpectator
* 1
2021-12-30 18:45:13 -03:00
Skjalf
58302e4196
feat(Core/Player): Implement player specific settings ( #9483 )
2021-12-26 08:39:15 -03:00
Kargatum
455372bda4
feat(Core/SavingSystem): remove old player saving system ( #9779 )
2021-12-24 08:37:45 -03:00
Francesco Borzì
cbc7e5466a
refactor(Core): remove unused imports ( #9767 )
2021-12-19 19:41:14 +01:00
UltraNix
b1303e0e96
fix(Core/Loot): Set skinnable flag only after all loot was taken. Source: TrinityCore. ( #9573 )
...
Fixes #9318
2021-12-12 10:31:00 -03:00
Skjalf
2d55974c0c
Revert "fix(Core/Spells): Forward core changes ( #8841 )" ( #9631 )
...
This reverts commit 85d2c39a48 .
2021-12-10 15:31:48 +01:00
acidmanifesto
85d2c39a48
fix(Core/Spells): Forward core changes ( #8841 )
2021-12-09 18:24:16 -03:00
Kargatum
51adbffae4
feat(Core/Modules): add separated lib for modules ( #9281 )
2021-12-02 20:28:58 +07:00
acidmanifesto
29f49108a5
chore(Core): Remove unnecessary slang Cosmetic ( #9325 )
...
* Remove unnecessary slang
Removes ZOMG! that is used in the src in logging and notes. Completely Unnecessary. Contributes to nothing useful. Inflates source. Not needed at all in any shape or form. Not Developer Lingo either.
* Further Clean Up
Removed Profanity
* sensible grammar correction
* More ZOMG! removal
2021-11-25 04:31:54 -03:00
Kargatum
f62664c987
refactor(Core/Misc): headers cleanup ( #9259 )
2021-11-22 17:24:39 +07:00
Skjalf
731d256420
refactor(Core/Cache): move the GlobalPlayerCache to its own class ( #9166 )
2021-11-18 16:53:36 +01:00