Takenbacon
58d13e69e1
fix(Core/Grids): Standardize grid coordinates ( #21479 )
2025-02-18 07:16:36 +01:00
Takenbacon
ee69a569c4
fix(Core/Grids): Grid improvements ( #20955 )
2025-02-14 22:11:27 +01:00
Kitzunu
ed008a8780
refactor(Core/Spells): Add helpers for HasAuraType ( #20802 )
2024-12-01 08:50:59 -03:00
Francesco Borzì
a9f0f371e5
refactor(src/server/game): optimise imports ( #20541 )
2024-11-13 11:37:20 +01:00
Francesco Borzì
4dcaee1816
refactor(src/common|server): remove unused import (big part 2) ( #20388 )
2024-11-01 08:42:31 +01:00
Francesco Borzì
cb7e28df05
refactor(src/server/game/*): remove unused imports (big part 1) ( #20310 )
2024-10-27 10:25:40 +01:00
Francesco Borzì
9b17898f7b
refactor(src/server/game/Grids): remove unused imports ( #20094 )
2024-10-01 08:04:26 +02:00
Kitzunu
386aea03ee
chore(Core/Misc): Some cleanup ( #19970 )
...
* remove weird blanks
* update if
* ) ) to ))
* missed some ) )
* now switch
* .
2024-09-21 19:34:31 +02: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
Grimdhex
643362d697
refactor(Core/Object): adds consistency in the use of type object check ( #19671 )
2024-08-25 09:57:37 -03:00
Tereneckla
79a653b13e
fix (Core/Spells): remove object size for hit calculation of aoe aura spells that target enemies ( #19529 )
...
remove object size for aoe on enemy spells
2024-08-18 20:34:56 -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
Francesco Borzì
54fadbda67
refactor(src/server/game/Entities): remove unused imports ( #19507 )
2024-07-28 16:39:39 -03:00
Kitzunu
3c50b1a135
fix(Core/Player): Vertical Message distance ( #19302 )
...
* cherry-pick commit (297541e9c9 )
* Get rid of unused param
* Merge SendMessageToSetInRange_OwnTeam into SendMessageToSetInRange
Co-authored-by: Badgersson <83663557+dekz120@users.noreply.github.com >
2024-07-06 10:05:34 -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
IntelligentQuantum
258e369ee5
chore(Core): remove useless includes ( #18036 )
2023-12-23 12:16:27 -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
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
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
Francesco Borzì
5d01b700fd
refactor(Core): remove unused imports ( #17094 )
2023-08-28 13:39:43 +02:00
Kitzunu
f80fb9b482
fix(Core/World): Remove artificially high minimal update intervals an… ( #15422 )
...
fix(Core/World): Remove artificially high minimal update intervals and Allow specifying minimum world updates diff in config
* Allow specifying minimum world updates diff in config
* Remove artificially high minimal update intervals
* cherry-pick commit (29a4153f00 )
* cherry-pick commit (de4920de81 )
* cherry-pick commit (32cef906b0 )
Co-authored-by: Shauren <shauren.trinity@gmail.com >
Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com >
2023-04-02 15:31:50 -03:00
UltraNix
a8b8199acb
fix(Core/Grids): Creatures should attack when loaded into grid. ( #15453 )
...
* fix(Core/Grids): Creatures should attack when loaded into grid.
Fixes #14645
* Update.
2023-03-20 10:45:41 -03:00
UltraNix
2641459304
fix(Core/Players): Charmed players should not attack critters. ( #15358 )
2023-03-13 08:15:10 -03:00
Skjalf
dba8c49bce
chore(Core/Object): Rename GetGOData() to GetGameObjectData() ( #14875 )
2023-02-05 08:35:52 -03:00
UltraNix
14f3b444ae
fix(Core/Creatures): Implemented `SUMMON_PROP_FLAG_ONLY_VISIBLE_TO_SU… ( #14054 )
...
* fix(Core/Creatures): Implemented `SUMMON_PROP_FLAG_ONLY_VISIBLE_TO_SUMMONER` summon flag.
Fixes #6674
* Update.
2023-01-06 00:52:05 +01:00
UltraNix
9b525d1cee
fix(Core/Gameobjects): Fixed LoS for traps summoned by creatures. ( #13873 )
2023-01-02 21:06:12 +01:00
UltraNix
12a07ff91f
fix(Core/Spells): Fixed LoS problems with hunter traps. ( #12348 )
...
* fix(Core/Spells): Fixed LoS problems with hunter traps.
Fixes #12332
* missing
2022-07-10 14:18:36 -04:00
Maelthyr
d928d8d96a
refactor(Core/Unit): PC&NPC Immunity ( #11986 )
...
* initial
* refactor(Core/Unit): PC & NPC Immunities
Cherry-pick TC: 74af880217
Co-authored-by: Treeston <treeston.nmoc@gmail.com >
* fix builds error
Cherry-pick TC: 74af880217
Co-authored-by: Treeston <treeston.nmoc@gmail.com >
* Fix nef combat, and replace SetFlag by SetUnitFlag
* fix combat with jedoga
Co-authored-by: Treeston <treeston.nmoc@gmail.com >
2022-06-18 08:16:45 -04:00
UltraNix
41b0fa02f2
fix(Scripts/ZulGurub): Shade of Jin'do's invisibility aura should not… ( #11838 )
...
* fix(Scripts/ZulGurub): Shade of Jin'do's invisibility aura should not be removed on attack.
Fixes #11557
* missing stuff.
* Update.
2022-06-06 15:20:40 -03:00
UltraNix
f28c678c14
fix(Core/Spells): Hunter traps should not be activated by targets not… ( #11971 )
...
fix(Core/Spells): Hunter traps should not be activated by targets not in LoS.
Fixes #11432
2022-06-06 09:03:24 -03:00
UltraNix
f7214e24ea
feat(Core/SmartScripts): Improvements to SMART_EVENT_FRIENDLY_HEALTH_PCT: ( #11171 )
...
* Added new parameter: radius.
* The event can be used with SMART_TARGET_SELF and SMART_TARGET_ACTION_INVOKER target types.
* Closes #5270
2022-04-18 19:35:37 +02:00
Kitzunu
856aed6fc6
feat(Core/Unit): New helpers for UnitFlag and UnitFlag2 ( #11227 )
2022-03-30 07:59:42 -03:00
Kitzunu
455899dc75
fix(Core/Misc): Change const to be after type name ( #10591 )
2022-02-14 16:05:45 -03:00
IntelligentQuantum
759b945a13
feat(Core/Grids): Allow arbitrary containers in grid searchers that support push_back
2022-02-09 20:08:57 -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
Francesco Borzì
abc56842c4
refactor(Core): remove unused imports ( #10296 )
2022-01-22 11:21:35 +01:00
Kitzunu
d1cc65b1c7
refactor(Core/Misc): isEmpty to IsEmpty ( #10011 )
2022-01-13 21:43:15 -05:00
IntelligentQuantum
725b1266b4
refactor(Core/Packet): Chat ( #9509 )
...
* Chat
* .
* Update GameObject.cpp
* Update Object.cpp
* Update Player.cpp
2022-01-08 07:11:06 -03:00
Skjalf
9265d346be
fix(Core/GridNotifiers): fix tempsummons not finding nearby creatures ( #9749 )
...
* fix(Core/GridNotifiers): fix tempsummons not finding nearby creatures
* fix lord valathak being summoned along mor
2021-12-19 07:53:53 -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
f62664c987
refactor(Core/Misc): headers cleanup ( #9259 )
2021-11-22 17:24:39 +07:00
UltraNix
7201d8840f
fix(Scripts/BlackrockSpire): Urok Doomhowl - improvements: ( #9067 )
...
The mobs should attack the pike if there is no players around
The boss should not despawning after summon
Urok's Tribute Pile with Pike and Head should disapear after Urok appear
Fixes #9023
2021-11-12 09:46:07 -03:00
acidmanifesto
8ac01da463
fix(Spell/Core): Prayer of Mending Heal not smart Healing [TC Cherry Pick] ( #8753 )
...
Co-authored by @Keader
2021-11-04 18:24:24 +01:00
acidmanifesto
d72b741fbf
feat(Core): CreatureUnitRelocationWorker reworked ( #8672 )
...
This is further support of void MoveInLineOfSight(Unit* who) override of creature AIs.
Currently before this PR, src scripted creatures of void MoveInLineOfSight(Unit* who) override would only follow void MoveInLineOfSight(Unit* who) override if they were hostile and nothing else. With this PR we create it with any aggression stance\faction stance, which will open up while improving upon only the future scripting of the core.
- Ellminates restricting HasReactState(REACT_AGGRESSIVE) only to requirements of creatures to use void MoveInLineOfSight(Unit* who) override to having no React State requirements.
2021-10-25 10:16:24 +02:00
jestermaniac
da69fec345
fix(Core/Entities): contested guards attacking after bg/recent pvp ( #7518 )
...
* fix(Core/Entities): contested guards attacking after bg/recent pvp
* fix(Core/Entities): contested guards attacking after bg/recent pvp
* Update Unit.cpp
* fix(Core/Entities): contested guards attacking after bg/recent pvp
* fix(Core/Entities): contested guards attacking after bg/recent pvp
* Update Unit.cpp
2021-10-14 13:21:18 +02:00
acidmanifesto
430157f71d
feat(Core): GetDeadCreatureListInGrid helper added, for aoe loot ( #8445 )
2021-10-13 11:32:01 -03: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