Commit Graph

387 Commits

Author SHA1 Message Date
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
Hasn
5bf64a164a fix(Core/Player) Stop small durability loss from still occuring when DurabilityLoss options in worldserver.conf are set to 0 (#17407)
Fix durability loss even when "DurabilityLoss"-settings in
worldserver.conf are zeroed
2023-10-21 08:10:34 -03:00
Kitzunu
a4e4d6ddb2 feat(Core/Player): Implement commentator tag (#17449)
* feat(Core/Player): Implement commentator tag

* remove redundant session check
2023-10-08 09:07:17 +02:00
Ludwig
f633eb8592 fix(Core/Achivement): Implement ACHIEVEMENT_FLAG_AVERAGE (#17263) 2023-09-21 18:56:28 +02:00
Tralenor
0796df57ac feat(Core/Player): Addition of a Hook in CanFlyInZone check (#16590)
---------

Co-authored-by: tmoos <tmoos@meteomatics.com>
Co-authored-by: Winfidonarleyan <dowlandtop@yandex.com>
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2023-09-20 22:40:08 +02:00
Ludwig
8ba8f0fe9e fix(Core/Achievement): Implement ACHIEVEMENT_CRITERIA_TYPE_OWN_RANK (#17180)
* fix(Core): Implement ACHIEVEMENT_CRITERIA_TYPE_OWN_RANK

* fix(Core): LoadAchievementCriteriaData(): Add ACHIEVEMENT_CRITERIA_TYPE_OWN_RANK

- fixes minor oversight of ACHIEVEMENT_CRITERIA_TYPE_OWN_RANK implementation
- this enables DB achievement_criteria_data check for ACHIEVEMENT_CRITERIA_TYPE_OWN_RANK
2023-09-14 22:27:39 +02:00
Skjalf
8d08a861aa feat(Core/Scripting): Implement OnAllowedToLootContainerCheck() hook (#17209)
* chore(Core/Loot): Move OnAllowedForPlayerLootCheck() hook call up

* Revert "chore(Core/Loot): Move OnAllowedForPlayerLootCheck() hook call up"

This reverts commit f841ef9da313976179fb788d9573ff8ced05ecb9.

* feat(Core/Scripting): Implement OnAllowedToLootContainerCheck() hook

* Update GlobalScript.cpp
2023-09-08 01:52:02 -03:00
Francesco Borzì
5d01b700fd refactor(Core): remove unused imports (#17094) 2023-08-28 13:39:43 +02:00
Angelo Venturini
dbc39a2817 fix(Core/Spells): Implement ENCHANT_PROC_ATTR_WHITE_HIT (#16771)
Co-authored-by: Ariel Silva<ariel-@users.noreply.github.com>
2023-07-17 08:19:24 -03:00
Tereneckla
e78ff51336 fix(Core/Player): don't dismiss warlock pets on logout (#16766)
Update Player.cpp
2023-07-15 17:12:28 -03:00
Tereneckla
718b0000ba fix(Core/Reputation): remove reputation splitting for being partied (#16660)
remove rate for party
2023-07-02 15:02:14 -03:00
Walter Pagani
7f9cdda17b chore(Core/ScriptMgr): Hooks used in mod-aoe-loot (#16589)
* Creating the necessary hooks for the loot aoe

* update hook

* Typing error

* Method name and add documentation

* codestyle

* Misc. fixes
2023-06-24 08:23:23 -03:00
Tereneckla
acc68ef1e2 fix(Core/Player): Double health regen from spirit (#15955)
Update Player.cpp
2023-05-13 15:26:43 -03:00
NinjaPleezAC
dfa5da00b1 fix(Core/Player): Apply equip effect auras with -1 duration (#14809)
Enforces a -1 duration value to auras applied from equip effects.
Current reliance on the DurationEntry of the auras causes at least one aura to incorrectly expire.

Closes AzerothCore issue #5649
Closes https://github.com/chromiecraft/chromiecraft/issues/531
2023-05-13 14:50:07 -03:00
AnchyDev
444793346d feat(Core/Hooks): Add parameter to detect XP origin for OnGiveXP hook. (#16109)
Added enum parameter to detect where XP originated from.
2023-05-05 22:39:36 -03: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
e5665c32f8 update (core\store): sLFGDungeonStore update (#15325)
* update (core\store): sLFGDungeonStore update

update (core\store): sLFGDungeonStore update

Co-Authored-By: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

* update (core\store): sLFGDungeonStore update

Co-Authored-By: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

---------

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2023-04-29 12:25:49 +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
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
Tereneckla
2e9cb71987 fix(Core/Player): Reduce Health Regeneration bonus while sitting to 33% (#15954)
Update Player.cpp
2023-04-21 15:18:23 -03:00
Tereneckla
67125caeb0 fix(Core/Player): Food healing does not increased by sitting down (#15959) 2023-04-21 14:54:44 -03:00
Tereneckla
d5c89657a1 fix(Core/Player): Apply SPELL_AURA_MOD_HEALTH_REGEN_PERCENT to in combat health regen (#15961) 2023-04-21 07:49:08 -03:00
Kitzunu
e91d62dce6 fix(Core/Players): Added error message for death knights attempting to lea… (#15420)
Core/Players: Added error message for death knights attempting to leave their starting zone early

* cherry-pick commit (2dc1b69a70)

Co-authored-by: Shauren <shauren.trinity@gmail.com>
2023-04-02 15:32:47 -03:00
Kitzunu
511c1918bd fix(Core/Item): Fixed incorrect damage mod for Heirloom 2H weapons (#15443)
* cherry-pick commit (13fa60ab86)

Co-authored-by: robinsch <robinsch@users.noreply.github.com>
2023-04-02 15:30:47 -03:00
Kitzunu
a0c51a45fb fix(Core/Player): Send player's own auras before all visible objects (#15445)
* fix(Core/Player): Send player's own auras before all visible objects

* cherry-pick commit (c6cd272505)

Co-Authored-By: Mikhail Redko <13364438+r4d1sh@users.noreply.github.com>

* Update Map.cpp

* Update src/server/game/Entities/Player/Player.cpp

* Update src/server/game/Entities/Player/Player.cpp

* Update src/server/game/Maps/Map.cpp

---------

Co-authored-by: Mikhail Redko <13364438+r4d1sh@users.noreply.github.com>
2023-04-02 15:30:26 -03:00
UltraNix
a72f5f97e6 fix(Core/Spells): Implemented ENCHANT_PROC_ATTR_EXCLUSIVE. (#15476)
Fixes #12132
2023-04-02 15:28:23 -03:00
UltraNix
7035e87543 fix(Core/Spells): Shadow Word: Death vs critters. (#15594)
Fixes #14299
2023-03-29 01:27:17 -03:00
Gultask
9e6dcb9e08 chore(Core/Players): Fix typo (#15552)
Update Player.cpp
2023-03-24 06:23:29 -03:00
UltraNix
61652c20c1 fix(Core/Players): Set environmental lava damage timer to 2.02 sec. (#15475)
Fixes #12170
2023-03-23 08:06:57 -03:00
UltraNix
8e27906634 fix(Core/Spells): Do not remove item casted auras on respec. (#15350) 2023-03-16 18:35:15 -03:00
UltraNix
b21f98d639 fix(Scripts/Karazhan): Chess Event. (#14736) 2023-03-15 00:07:49 -03:00
Skjalf
a9f945b436 feat(Core/Player): Implement helper to send system messages to players (#15364) 2023-03-12 15:35:54 -03:00
UltraNix
ab4e95cc20 fix(Core/Spells): Fixed sending category cooldowns. (#15192) 2023-03-04 17:41:31 -03:00
NinjaPleezAC
deb7e190c5 fix(CORE/Spell): Book of the Dead unequip fix (#14839) 2023-02-13 00:48:58 +01:00
Kitzunu
f039836a2f chore(Core/Misc): Change all TODO to doxygen comment (#14966) 2023-02-12 10:05:34 -03:00
Pedro Antonio
2e6c28c4d8 feat(Core/Pet): DK Petname generation locale (#14059) 2023-02-11 18:21:43 -03: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
UltraNix
9ce8b8cf29 fix(Core/Players): Fixed sending power regen update to nearby players. (#14043) 2023-01-28 11:03:56 +01:00
UltraNix
1441ae7d7c fix(Scripts/Command): Command gm visible on should not mark you wit… (#14057) 2023-01-28 11:03:46 +01:00
lineagedr
777a1be394 fix(Core/Packets): Fix a crash in MSG_RANDOM_ROLL. (#14545) 2023-01-07 20:27:49 +01:00
UltraNix
af2d3a7cfc fix(Core/Spells): Spellmods should not drop charges if not consumed b… (#13498) 2023-01-02 20:36:44 +01: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
Axel Cocat
97b5906124 feat(Core/Player): delete character cache in Player::DeleteFromDB() (#14388) 2022-12-28 19:22:28 -03:00
UltraNix
6345958769 fix(Core/Loot): Disenchanted, milled or prospected items should be se… (#14273)
fix(Core/Loot): Disenchanted, milled or prospected items should be sent as retrieval mail in case of full bags.

Fixes #10798
2022-12-27 21:43:12 -03:00
UltraNix
0c1b967f9b fix(Core/Transports): Added Arrival bell sound for boats. (#14272)
Fixes #11340
2022-12-25 10:35:55 -03:00
ZhengPeiRu21
7990de44c1 fix(Core): Correct Quest Details Display at Max Level (#13046)
* fix(Core): Quest Details Display at Max Level

* Add OnSetMaxLevel hook
2022-12-20 12:14:53 +01:00
M'Dic
4d8be337a8 update (core): Continue Taxi Flight support helper (#14211)
Thank you for the review approval
2022-12-13 11:43:45 -05:00
ZhengPeiRu21
06c458e748 feat(Core): EnableLowLevelRegenBoost config option (#13035)
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2022-12-11 04:53:10 +01:00
ZhengPeiRu21
5a7822282f feat(Core): Config to disable all Wintergrasp processing (#13086)
* feat(Core): Config to disable all Wintergrasp processing

* Use 2 instead of -1 - configs are parsed as uint

* Fix build warnings
2022-11-01 06:22:09 -03:00
UltraNix
3da4d30371 fix(Core/Players): Fixed obtaining extra (custom) talent points only … (#13526)
fix(Core/Players): Fixed obtaining extra (custom) talent points only for DK class.

Fixes #4327
2022-10-29 07:15:32 -03:00