Yunfan Li
1f54cb14fa
Merge branch 'master' into Playerbot
2024-07-07 13:33:14 +08:00
Anton Popovichenko
04acfd96a0
fix(Core/Unit): Invalidate update object cache when changing health in the same world update tick. ( #19287 )
...
* fix(Core/Unit): Invalidate update object cache when changing health in the same world update tick.
Should fix an issue when the client sees dead NPCs when they are not.
* Fix styling
* Another codestyle fix
2024-07-05 15:42:22 -03:00
Yunfan Li
72725635ba
Merge branch 'master' into Playerbot
2024-06-19 14:32:16 +08:00
Benjamin Jackson
d6d49a9e45
refactor(Core/ObjectMgr): Implement display probabilities. ( #19068 )
...
* Init.
Cherry-picked from TC commits 9d210476e5 and c488fb219a
Co-Authored-By: Traesh <9392905+traesh@users.noreply.github.com >
Co-Authored-By: Shauren <shauren.trinity@gmail.com >
* Add brute data.
Needs validation against what existed before, i.e. Classic change prevention.
* Add validation info for brute data.
* Remove incomplete data queries.
* Requested changes.
* Whitespace.
* Requested change.
Table name.
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com >
* Requested change.
Table name.
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com >
* Resolve the funny merge conflicts.
I wonder why git blame doesn't work on a file with 20k lines in it that's odd huh champ.
* Remove unused parameter.
* Remove uses of unused parameter.
* Use unused parameter.
Hopefully?
* I will cry.
* Sobbing endlessly.
* Remove comment.
* Adjust table structure query.
Remove length parameters and allow null for build value.
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com >
* Adjust column datatype and add check constraint.
---------
Co-authored-by: Traesh <9392905+traesh@users.noreply.github.com >
Co-authored-by: Shauren <shauren.trinity@gmail.com >
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com >
2024-06-16 18:12:16 +02:00
Yunfan Li
f0be01a5d7
Merge branch 'master' into Playerbot
2024-04-07 21:49:34 +08:00
Anton Popovichenko
1f640c9872
feat(Core/Optimization): Optimize build of units update object by leveraging cache ( #18637 )
...
* feat(Core/Optimization): Optimize build of units update object by leveraging cache.
* Remove whitespaces.
* Add alternative hooks to handle transmog and other similar things.
* Fix build on some compilers.
* Fix codestyle
* Fix build again.
* Take into account updateType.
2024-04-05 08:03:11 +02:00
Yunfan Li
5699c97d8c
Merge branch 'master' into Playerbot
2024-02-11 23:45:22 +08: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
Nathan Handley
425a490a7b
feat(Core/Unit): New helper HasActivePowerType and script hook OnPlayerHasActivePowerType ( #18293 )
...
* Create HasActivePower for script intercept
* Replace relevant player-related getPowerType() comparators with HasActivePowerType
* Change OnPlayerHasActivePowerType to regular bool instead of optional
---------
Co-authored-by: NathanHandley <nathanhandley@protonmail.com >
2024-02-09 06:27:02 -03:00
Yunfan Li
ccf92f481d
Merge branch 'master' into Playerbot
2024-01-04 19:22:20 +08:00
Alethrion
b2fcc1babf
fix(Core/Unit): Remove delay for Conflagrate aura state ( #18068 )
...
Removes ConflagrateAuraStateDelayEvent
Cherry-picked from: e27c385b48
Co-authored-by: Ariel Silva <ariel-@users.noreply.github.com >
2024-01-01 07:59:23 -03:00
Yunfan Li
7915f79d04
Merge branch 'master' into Playerbot
2023-12-12 20:52:42 +08:00
Winfidonarleyan
eb1ecc38a5
feat(Core/Scripting): move all script objects to separated files ( #17860 )
...
* feat(Core/Scripts): move all script objects to separated files
* Apply 5bfeabde81
* try gcc build
* again
2023-12-02 21:13:20 +01: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
Andrew
5a4fdc7de4
fix(Core/Spells): Banish should only be dispelled by Mass Dispel ( #17703 )
...
* fix(Core/Spells): Banish should only be dispelled by Mass Dispel
* Update Unit.cpp
* Update Unit.cpp
2023-11-14 16:27:37 +01:00
Kitzunu
bbadc32bea
Revert Visibility Notifier changes ( #17682 )
...
* Revert "fix(Core/Grid): Implement missing GridUnload setting (#17569 )"
This reverts commit 79b39f9655 .
* Revert "fix(Core/Grid): Address bugs and performance issues introduced by visibility notifier implementation (#17480 )"
This reverts commit 60e27511c5 .
* Revert "fix(Core): GridCleanUpDelay Log (#17436 )"
This reverts commit 90b16ca065 .
* Revert "feat(Core/Grids): Implement visibility notifier (#15919 )"
This reverts commit 2779833768 .
2023-11-12 00:48:49 +01:00
Ludwig
ef09d4b63f
fix(Core/Unit): Implement GetDisplayRace() ( #17609 )
2023-11-08 19:19:38 +01:00
Kitzunu
f757e93da5
refactor(Core/Misc): Make DeathState enum class ( #17607 )
2023-10-28 10:54:03 +02:00
Yunfan Li
d879fc9258
Merge branch 'master' into Playerbot
2023-10-27 20:12:09 +08:00
AG
60e27511c5
fix(Core/Grid): Address bugs and performance issues introduced by visibility notifier implementation ( #17480 )
...
* Bug fixes
- Corrected std::chrono from seconds to milliseconds
- Got rid of leftover code that caused objects to not show up on time
* Removed logic to set gameobject as active
- More alignement with TC.
- Reduces CPU usage drastically
* Revert back to using time_t instead of std chrono
* Invoke SetNoCreate() method to reduce CPU usage drastically
* Remove setActive from static and motion transports
* Fix performance issues
* Added SetFarVisible to WG and some dungeon scripts
- Also removed setActive(true) from creatures in Wintergrasp. As for gameobjects they are set to active upon being damaged/destroyed and removed from active on rebuild (reset)
* Removed comments related to VISIBILITY_COMPENSATION
* Fix log
* Deleted unused files + corrected a check
* Added missing header
* Removed unused parameter
* Removed another unsued parameter
* Changed vector to set for i_visibleNow
- Changed vector to set for i_visibleNow in VisibleNotifer
- Adjusted HaveAtClient to accept Object*
- Adjusted SendUpdateToPlayer to send createobject packet only if not known to client
2023-10-23 05:37:11 -03:00
Yunfan Li
57e0c7a09f
Merge branch 'master' of github.com:azerothcore/azerothcore-wotlk into Playerbot
2023-10-22 19:52:23 +08:00
AG
2779833768
feat(Core/Grids): Implement visibility notifier ( #15919 )
...
* Cherry-picked from TrinityCore (unable to find author)
2023-09-28 22:28:28 +02:00
Yunfan Li
72660b1ed8
Merge branch 'master' into Playerbot
2023-05-24 17:57:30 +08:00
Gultask
64c7c99bda
revert(Core/Player): Revert Delayed Damage System ( #16246 )
...
* Revert "fix(Core/Spells): Delayed Damage system (#16183 )"
This reverts commit d282cce4af .
* Revert "fix: Crash on ProcessDelayedDamages (#16166 )"
This reverts commit 3dbdea5e28 .
* Revert "fix(core\player): Missing combat animation (#14199 )"
This reverts commit a238e5e27b .
2023-05-13 13:50:27 -03:00
Angelo Venturini
d282cce4af
fix(Core/Spells): Delayed Damage system ( #16183 )
2023-05-07 08:58:38 -03:00
ZhengPeiRu21
aa1214a6ba
Merge branch 'azerothcore:master' into Playerbot
2023-05-01 10:31:02 -06: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
a238e5e27b
fix(core\player): Missing combat animation ( #14199 )
2023-04-29 12:27:13 +02: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
郑佩茹
1b3fd82f5c
Merge branch 'master' into Playerbot
...
# Conflicts:
# src/server/game/Guilds/Guild.cpp
2023-04-03 07:52:56 -06:00
UltraNix
1acbb9ee53
fix(Core/Spells): Fixed Spiritual Attunement not working with partial… ( #15767 )
...
fix(Core/Spells): Fixed Spiritual Attunement not working with partial overheals.
Fixes #14430
2023-04-02 10:13:16 -03:00
郑佩茹
be7c57507f
Merge branch 'master' into Playerbot
...
# Conflicts:
# src/server/game/Entities/Player/Player.h
2023-03-16 10:00:13 -06:00
UltraNix
b21f98d639
fix(Scripts/Karazhan): Chess Event. ( #14736 )
2023-03-15 00:07:49 -03:00
Maelthyr
0200a288cd
refactor(Scripts/Northrend): conversion to std::chrono ( #15269 )
...
Co-authored-by: Maelthyrr <maelthyrr@users.noreply.github.com >
2023-03-07 09:23:33 -03:00
郑佩茹
4bc9901f16
Merge branch 'master' into Playerbot
...
# Conflicts:
# src/server/game/Entities/GameObject/GameObject.h
2023-02-13 13:07:03 -07:00
Kitzunu
f039836a2f
chore(Core/Misc): Change all TODO to doxygen comment ( #14966 )
2023-02-12 10:05:34 -03:00
郑佩茹
03b3f9d051
Merge branch 'master' into Playerbot
...
# Conflicts:
# src/server/game/World/World.h
2023-02-09 12:40:25 -07:00
Skjalf
2aeeee9c83
fix(Core/Spells): Remove all hardcoded restrictions for pick pocket sp… ( #14788 )
...
Co-authored-by: Shauren <shauren.trinity@gmail.com >
2023-01-29 12:12:21 -03:00
Skjalf
b4e3f1310b
feat(Core/Unit): Add KillSelf overload ( #14785 )
...
Co-authored-by: jackpoz <giacomopoz@gmail.com >
2023-01-28 17:57:23 -03:00
UltraNix
9ce8b8cf29
fix(Core/Players): Fixed sending power regen update to nearby players. ( #14043 )
2023-01-28 11:03:56 +01:00
UltraNix
7f7a2f5a92
fix(Core/Creatures): Critters should start fleeing upon entering comb… ( #14253 )
2023-01-28 11:01:43 +01:00
Gultask
6b4ef50e7a
Revert "fix(Core/Spells): Ignite and Revitalize should not prelong co… ( #14513 )
...
Revert "fix(Core/Spells): Ignite and Revitalize should not prelong combat. (#13812 )"
This reverts commit 96fa9c5c7b .
2023-01-05 23:14:56 -03:00
UltraNix
96fa9c5c7b
fix(Core/Spells): Ignite and Revitalize should not prelong combat. ( #13812 )
...
Fixes #13330
2023-01-06 00:50:53 +01:00
Angelo Venturini
9e18b86311
fix(Core/Auras): SPELL_AURA_MOD_SCALE should scale additively instead… ( #14425 )
...
...multiplicatively
Co-authored-by: Shauren <shauren.trinity@gmail.com >
2023-01-02 20:43:20 -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
Angelo Venturini
4992940453
fix(Core/Auras): Implement Roc form ( #13959 )
...
Co-authored-by: Ariel Silva <ariel-@users.noreply.github.com >
Co-authored-by: Ariel Silva <ariel-@users.noreply.github.com >
2022-12-11 10:58:20 -03:00
Skjalf
19fa22ba92
Revert "refactor(Core/Movement): Naming convention" ( #14100 )
...
Revert "refactor(Core/Movement): Naming convention (#13989 )"
This reverts commit d2f440c3e8 .
2022-12-11 03:53:09 +01:00
郑佩茹
c1c97ad425
Merge branch 'master' into Playerbot
...
# Conflicts:
# src/server/game/Server/WorldSession.cpp
# src/server/game/Server/WorldSession.h
2022-12-07 14:46:21 -07:00
Maelthyr
d2f440c3e8
refactor(Core/Movement): Naming convention ( #13989 )
...
update codestyle
Co-authored-by: Maelthyrr <lynethris@protonmail.ch >
2022-12-02 05:52:01 -03:00
郑佩茹
cab0d6f027
Merge branch 'master' into Playerbot
...
# Conflicts:
# src/server/game/Guilds/Guild.cpp
2022-11-18 10:21:36 -07:00