Takenbacon
1c3cbd3d9e
feat(Core/Maps): Improve map object updater ( #22392 )
2025-07-11 16:00:16 +02:00
Benjamin Jackson
52799d76f6
refactor(Core): Add definition file for area table entries. ( #22054 )
2025-05-09 15:48:02 +02:00
Jelle Meeus
4b64c4ed25
fix(Core/Player): Force UpdateZone on resurrect to apply Zone auras ( #21888 )
2025-04-12 13:38:32 -03:00
Exitare
98ceb1c067
fix(Core/PlayerScript) Align player script function names ( #21020 )
...
Co-authored-by: sudlud <sudlud@users.noreply.github.com >
2025-02-16 14:59:41 +01:00
iThorgrim
971ebcae31
feat(Core/Scripting): Add Player skill based hook ( #21273 )
...
Co-authored-by: IntelligentQuantum <IntelligentQuantum@ProtonMail.Com >
Co-authored-by: Ludwig <sudlud@users.noreply.github.com >
2025-02-15 23:10:38 +01:00
Anton Popovichenko
91da92f33f
fix(Core/SpellQueue): Fix undefined behavior when processing SpellQueue. ( #21459 )
2025-02-15 11:45:12 +01:00
Anton Popovichenko
db49562a6a
fix(Core/Channels): Don't use deleted pointer in channel name creation. ( #21435 )
2025-02-13 21:39:29 +01:00
Andrew
16fa25b7a9
feat(Core/Maps): Implement dynamic respawn rates ( #21417 )
...
Co-authored-by: r00ty-tc <r00ty-tc@users.noreply.github.com >
Co-authored-by: Jelle Meeus <sogladev@gmail.com >
Co-authored-by Treeston
This is a partial cherry-pick of: 59db2eeea0
2025-02-12 15:06:42 -03:00
Mykhailo Redko
017cfb7b4b
fix(Core/PacketIO): Implemented CMSG_BUSY_TRADE and CMSG_IGNORE_TRADE. ( #21385 )
2025-02-10 17:12:38 +01:00
Andrew
79cbb00075
feat(Core/Creature): Implement HasFlagsExtra() helper to creature ( #21362 )
2025-02-08 14:07:04 -03:00
Kitzunu
9e9a2fe5e3
refactor(Core/ObjectMgr): Change GetAcoreString from char const* to s… ( #21213 )
...
...ring
2025-02-01 22:46:42 +01:00
Kitzunu
0733c30471
refactor(Core/Player): Improve Channel.RestrictedLfg handling ( #21145 )
2025-01-21 19:09:31 +01:00
Jelle Meeus
5bc20a184d
fix(Player/SpellQueue): bandaid crashfix ( #21103 )
2025-01-10 19:38:24 -03:00
Jelle Meeus
88eb6fbb2b
fix(Core/Player): SpellQueue fix typo StartRecoveryCategory ( #20944 )
...
fix: typo StartRecoveryCategory
should be category
2024-12-17 10:38:24 -03:00
Jelle Meeus
993bdcb84e
feat(Core/Player): implement Spell Queue ( #20797 )
2024-12-12 11:59:52 +01:00
Kitzunu
ed008a8780
refactor(Core/Spells): Add helpers for HasAuraType ( #20802 )
2024-12-01 08:50:59 -03:00
Jelle Meeus
3565e4a9eb
feat(Core/WorldState): improved WorldState scripting ( #20141 )
...
* implement world state script
based on
0b87ca9d9e
Co-authored-by: killerwife <killerwife@gmail.com >
* refactor to use onleave and onenter instead of spell_area
allows players to right click remove adal's buff
* add MapMgr.h
* refactor: use condition enum instead of uint32, prefix WORLD_STATE where needed
* remove lock from WorldState::Update
sWorldState->Update() is only called from World::Update
* remove unsafe SmartAI action of setWorldState
---------
Co-authored-by: killerwife <killerwife@gmail.com >
2024-11-12 12:15:27 -03:00
Jelle Meeus
6e4a9bbb14
fix(Core/Unit): fix Dual Wield for more creatures, CREATURE_FLAG_EXTRA_USE_OFFHAND_ATTACK, creature disarm damage ( #20015 )
...
* enable CREATURE_FLAG_EXTRA_USE_OFFHAND_ATTACK
* sql set CREATURE_FLAG_EXTRA_USE_OFFHAND
* use new HasOffHandWeaponForAttack instead of haveOffhandWeapon
no longer requires m_CanDualwield set to use Offhand attack
requires non-disarmed weapon in Offhand OR creature_flag_extra enabled
Co-authored-by: Ovah <dreadkiller@gmx.de >
Co-authored-by: Warlockbugs <warlockbugs@outlook.com >
* Make shapeshift forms which dont override attack speed use weapon damage
Co-authored-by: killerwife <killerwife@gmail.com >
* SetEquipmentSlots turning off damage update when using template default
Co-authored-by: killerwife <killerwife@gmail.com >
* Setup DualWield & Damage On Equipment Updates, implement Set and GetVirtualItem
Co-authored-by: Yatzii <47720837+Yatzii93@users.noreply.github.com >
* creature disarm damage
set disarm to reduce minmax damage by 50% instead of setting to 0
Co-authored-by: Warlockbugs <warlockbugs@outlook.com >
---------
Co-authored-by: Ovah <dreadkiller@gmx.de >
Co-authored-by: Warlockbugs <warlockbugs@outlook.com >
Co-authored-by: killerwife <killerwife@gmail.com >
Co-authored-by: Yatzii <47720837+Yatzii93@users.noreply.github.com >
2024-09-25 16:53:39 +02:00
天鹿
e7448f2986
fix(Scripts/Commands): .gps formatting transport offset ( #19890 )
...
* Update cs_misc.cpp
* Update PlayerUpdates.cpp
2024-09-07 01:03:41 -03:00
Benjamin Jackson
1edac37ac3
refactor(Core): Make more use of helpers. ( #19835 )
...
* Init.
* Reword.
* Update codestyle script.
Co-Authored-By: Kitzunu <24550914+Kitzunu@users.noreply.github.com >
* Add gameobject type ID check, reorder checks.
* Add helper/codestyle check for unit type.
* `IsUnit()` -> `IsCreature()`
* Add `IsUnit()` method.
* Use type mask.
https: //github.com/TrinityCore/TrinityCore/commit/cc71da35b5dc74abf71f8691161525a23d870bb5
Co-Authored-By: Giacomo Pozzoni <giacomopoz@gmail.com >
Co-Authored-By: Ovahlord <18347559+Ovahlord@users.noreply.github.com >
* Replace instances of `isType` with `IsUnit`.
---------
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com >
Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com >
Co-authored-by: Ovahlord <18347559+Ovahlord@users.noreply.github.com >
2024-09-03 14:41:31 -03:00
Anton Popovichenko
9999a80c96
feat(Core/Achievements): Add possibility to complete achievements and update achievement criteria for offline players. ( #19851 )
2024-09-03 13:05:23 -03:00
Grimdhex
643362d697
refactor(Core/Object): adds consistency in the use of type object check ( #19671 )
2024-08-25 09:57:37 -03:00
Grimdhex
5cbe485785
fix(Core/PlayerUpdates): incorrect backslash in a debug_log ( #19630 )
2024-08-15 18:44:07 -03:00
Francesco Borzì
02a05fbd4c
refactor(src/common): remove unused imports ( #19506 )
...
* refactor(src/common): remove unused imports
* fix: build
* chore: fix build
* chore: size_t -> std::size_t
* chore: fix fuckup from previous commit
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build with std::size_t
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
2024-07-30 20:06:46 -03:00
Kitzunu
f96d4c8670
Revert "Add (core\db): Support for Homebind Orientation ( #13389 )" ( #19257 )
...
* Revert "Add (core\db): Support for Homebind Orientation (#13389 )"
This reverts commit 2e6f6e26da .
Changes to be committed:
modified: src/server/database/Database/Implementation/CharacterDatabase.cpp
modified: src/server/game/DungeonFinding/LFGScripts.cpp
modified: src/server/game/Entities/Player/Player.cpp
modified: src/server/game/Entities/Player/Player.h
modified: src/server/game/Entities/Player/PlayerStorage.cpp
modified: src/server/game/Entities/Player/PlayerUpdates.cpp
modified: src/server/game/Handlers/CharacterHandler.cpp
modified: src/server/game/Handlers/MiscHandler.cpp
modified: src/server/game/Handlers/MovementHandler.cpp
modified: src/server/game/Maps/Map.cpp
modified: src/server/game/Spells/Spell.cpp
modified: src/server/scripts/Commands/cs_misc.cpp
modified: src/server/scripts/Commands/cs_tele.cpp
modified: src/server/scripts/Northrend/VaultOfArchavon/instance_vault_of_archavon.cpp
Untracked files:
data/sql/updates/pending_db_world/rev_1719945200692175000.sql
* Revert "Add (core\db): Support for Homebind Orientation (#13389 )"
* whoops
2024-07-02 22:02:15 +02:00
sudlud
1663045da6
fix(Core/Mail): calculate unReadMails and m_nextMailDelivereTime usin… ( #18996 )
...
* fix(Core/Mail): calculate unReadMails and m_nextMailDelivereTime using mail cache
- these values were grepped directly from DB before
-> this change was introduced with azerothcore/azerothcore-wotlk#3420
- the whole mailing system relies on the mails beeing cached in the core
-> these get stored in DB regularly or on specific events
- so apparently the DB is not always in sync with the current mail cache state of the core
-> so grepping data directly from DB is not a good idea at this point
* Update PlayerUpdates.cpp
2024-06-02 09:29:54 -03:00
Anton Popovichenko
73340b94e3
feat(Core/Compression): Move packets compression from map to network thread ( #18602 )
...
* feat(Code/Compression): Move packets compression from map to network thread.
* Code style fix
* Remove unicode letter
2024-03-28 08:57:29 -03: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
Kitzunu
5bfeabde81
chore(Core/Misc): rename spellInfo pointers ( #17914 )
...
* Rename all
2023-12-02 06:03:15 -03: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
Kitzunu
f757e93da5
refactor(Core/Misc): Make DeathState enum class ( #17607 )
2023-10-28 10:54:03 +02: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
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
Žan Skamljič
ee3ab6fe2a
chore(Core/ScriptMgr): Add Hooks for profession skill gains ( #16526 )
2023-06-19 16:12:20 -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
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
UltraNix
197b053eb4
fix(Scripts/ShadowLabirynth): Fixed Blackheart's Incite Chaos. ( #15583 )
2023-04-21 08:29:32 -03:00
Angelo Venturini
c84123b607
fix: Channel Crash ( #15909 )
2023-04-18 22:51:58 -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
00a8077560
fix(DB/Conditions): Grub should sell its items only to players who co… ( #13803 )
...
...mpleted "Dig Rat Stew" quest.
2022-11-21 18:52:16 -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
schell244
f75aceb9a9
fix(Core): Small improvements for weapon/defence skill handling ( #12253 )
...
* Improve weaponskill handling
* replace pvp check TYPEID_PLAYER with IsCharmedOwnedByPlayerOrPlayer
* remove no longer needed pvp checks
* move pvp check back to ProcDamageAndSpellFor()
* rename plevel -> playerLevel, add LOG to verify increase chances
* fix issue due to negative value in uint
* revert change which allowed blocked attacks to increase weapon skill
Co-authored-by: schell244 <>
2022-09-21 09:09:26 -04:00
DavuKnight
d8598c764e
feat(core): OnFfaPvpStateUpdate Event ( #13023 )
...
* Event for Notification when the Player enters into or Leaves Ffa
* Bug and Formatting Fixes
2022-09-21 08:33:28 -04:00
UltraNix
db41a0132e
fix(Core/Misc): Fixed radius of areatriggers in battlegrounds. ( #12017 )
...
* fix(Core/Misc): Fixed radius of areatriggers in battlegrounds.
Fixes #12004
* buildfix.
2022-06-13 08:57:35 -03:00
acidmanifesto
11f151a962
fix (core): Prevent Forced UpdateObjectVisibility Before in World ( #11730 )
...
fix (Core): Prevent Forced UpdateObjectVisibility Before in World
TC Cherry Pick: 38dc5667ba
Co-Authored-By: Shauren <shauren.trinity@gmail.com >
Co-Authored-By: Jurgis <326232+chemicstry@users.noreply.github.com >
Co-authored-by: Shauren <shauren.trinity@gmail.com >
Co-authored-by: Jurgis <326232+chemicstry@users.noreply.github.com >
2022-05-13 13:02:43 -04:00
Bogir[rus]
d723352207
fix(Core/Player): corrected HasUnitFlag usage ( #11321 )
2022-04-11 06:11:37 -03: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
edb7cac19b
feat(Core/Unit): NPCFlags helpers ( #11286 )
...
* cherry-pick commit (TrinityCore/TrinityCore@d611925 )
Co-Authored-By: Shauren <shauren.trinity@gmail.com >
2022-04-05 13:52:42 +02:00
UltraNix
14edda6c90
fix(Core/Players): Fixed setting player's zone id to unknown value. ( #10996 )
...
* fix(Core/Players): Fixed setting player's zone id to unknown value.
Fixed #10945
* Update.
* Update.
2022-04-01 06:59:12 -03:00