Commit Graph

57 Commits

Author SHA1 Message Date
Kitzunu
897a02bb75 refactor(Core/Misc): acore to Acore (#6043) 2021-05-31 14:21:54 +02:00
Axel Cocat
e9ebb1ae57 fix(Scripts/HoS): Adjust IsEncounterInProgress() (#5642) 2021-05-08 23:04:24 -06:00
UltraNix
44babc3c3a fix(Core/Pooling): Fixed less and less objects from pools being spawned the longer the server is running (#5572) 2021-05-08 12:39:09 -06:00
UltraNix
f4c226423d feat(Core/Misc): implement ObjectGuid class (port from TC) (#4885) 2021-04-25 22:18:03 +02:00
Kitzunu
33aeadf8b6 refactor(Core/Misc): Define & Rename Attributes and flags (#5193) 2021-04-15 14:16:39 +02:00
Footman
c32cd06a78 fix(Core/Movement): fix multiple creature movement issues (#5097) 2021-04-09 20:56:19 +02:00
Cláudio Costa
042cec82f4 fix(Core): Boss encounter disengage improvement (#4954) 2021-04-06 14:15:56 +02:00
Kitzunu
f9d708b450 feat(Core/Instance): Add instance validation for creature scripts (#4596) 2021-04-05 15:34:26 +02:00
Silker
9bf2800ca6 fix(scripts/DB): Implement "Marked immortal guardian" (#5046) 2021-03-29 08:42:15 -06:00
Cláudio Costa
aea4ce3094 fix(scripts/Ulduar): Improve Hodir (#4703) 2021-03-20 08:36:30 -06:00
UltraNix
0d19ac4312 fix(scripts/Ulduar): Two fixes to Algalon encounter (#4852) 2021-03-17 08:08:25 -06:00
UltraNix
252f56c097 fix(scripts/Ulduar): Spinning UP during 4th phase (#4876) 2021-03-17 07:39:53 -06:00
Kitzunu
28f1dc5c0c refactor(Core): replace NULL with nullptr (#4593) 2021-03-02 01:34:20 +01:00
Kitzunu
dbc0ff6554 refactor(Core): sort #includes alphabetically (#4579) 2021-02-24 22:34:42 +01:00
Kitzunu
0d52b4ca4a feat(Core/Spell): Implement ValidateSpellInfo (#4323)
* feat(Core/Spell): Implement ValidateSpellInfo

* cherry-pick from 2b5d7eef3a & a0a158b5b8

* sLog->outError

* cleanup

* convert to ValidateSpellInfo

* fix error log

* improve sLog->outError

* remove non related spells stuff from Validate

* remove the last

* build

* build x2
2021-02-01 18:57:25 +01:00
Yehonal
c8f43d8584 feat(Core/Movement): Improved pathfinding, collisions and movements (#4220)
Npc positioning
Implemented slope check to avoid unwanted climbing for some kind of movements (backwards, repositioning etc.)
Implemented backwards movement
Re-implemented circle repositioning algorithm (smartest than retail, but with the same feeling)
Fixed random position of summoned minions
Improved pet following movement. Also, they attack NPC from behind now. Thanks to @Footman

Swimming creatures
Fixed max_z coordinate for swimming creatures. Now only part of their body is allowed to be out of the water level
Fixed pathfinder for swimming creatures creating shortcuts for specific segments, now they swim underwater to reach the seashore instead of flying above the water level.
Creatures with water InhabitType but no swimming flag now, when not in combat, will walk on water depth instead of swimming. Thanks @jackpoz for the original code
UNIT_FLAG_SWIMMING in UpdateEnvironmentIfNeeded to show the swimming animation correctly when underwater
Implemented HasEnoughWater check to avoid swimming creatures to go where the water level is too low but also to properly enable swimming animation only when a creature has enough water to swim.

Walking creatures
Extended the DetourNavMeshQuery adding area cost based on walkability (slope angle + source height) to find better paths at runtime instead of completely remove them from mmaps
improve Z height in certain conditions (see #4205, #4203, #4247 )

Flying creatures
Rewriting of the hover system
Removed hacks and improved the UpdateEnvironmentIfNeeded. Now creatures can properly switch from flying to walk etc.
Spells
LOS on spell effect must be calculated on CollisionHeight and HitSpherePoint instead of position coords.
Improved position for object/creature spawned via spells
Improved checks for Fleeing movements (fear spells)

Other improvements
Implemented method to calculate the CollisionWidth from dbc (used by repositioning algorithm etc.)
Improved raycast and collision checks

Co-authored-by: Footman <p.alexej@freenet.de>
Co-authored-by: Helias <stefanoborzi32@gmail.com>
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2021-02-01 01:34:27 +01:00
55Honey
12bf9731af fix(Scripts/boss_freya): adds apply SPELL_CONSERVATOR_GRIP 6s after spawn (#4082)
Co-authored-by: WiZZy <bilucristian25@gmail.com>
2021-01-17 01:06:40 +01:00
Kitzunu
da4edd547d chore(core): remove malformed whitespaces (#4244)
* from https://www.codefactor.io/repository/github/azerothcore/azerothcore-wotlk/issues?category=Style&groupId=838&lang=5&page=75
2021-01-10 14:27:55 +01:00
Kargatum
ea93a5c1a1 feat(CI/Codestyle): added codestyle check (#3668) 2021-01-09 11:59:50 +01:00
WiZZy
aec0dbb747 fix(scripts/Ulduar): Kologarn - Focused Eyebeam (#3529) 2020-12-25 12:10:19 -06:00
WiZZy
d710057a31 fix(scripts/Ulduar): Expedition Base Camp (#3558) 2020-12-25 09:56:32 -06:00
Francesco Borzì
d4a58700d4 refactor(Core): apply clang-tidy modernize-use-override (#3817) 2020-12-06 18:04:55 +01:00
Silker
87c905af26 fix(Scripts/Ulduar): Yogg-Saron's portals (#3810) 2020-12-04 22:55:18 -06:00
aradep
223738e910 fix(Scripts/DB): Mimiron Computer NPC text (#3722) 2020-11-27 10:07:15 +01:00
Silker
bcac48b573 fix(scripts/Ulduar): Assembly of Iron - interrupt immune effect (#3765) 2020-11-26 08:53:29 -06:00
Silker
4105d370bf fix(DB/scripts): Freya - Sun beam (#3730) 2020-11-22 11:16:35 -06:00
Silker
d6c1b84bd9 fix(Scripts): Ignis the Furnace Master - Iron construct buff stacks #3731 2020-11-21 15:31:22 -06:00
aradep
c10bffb9a9 fix(Scripts/Ulduar): Boss XT-002 enrage sound 2020-11-03 02:50:59 -06:00
aradep
18d7f8b92f fix(Scripts/Ulduar): Hodir flash freeze safe spots 2020-11-02 15:06:50 +01:00
Andrius Peleckas
ab5933effa fix(Core/Util): EventMap::RepeatEvent when eventId is retrieved by ExecuteEvent() call (#3426) 2020-10-17 14:59:22 +02:00
mslmdevu
32da0eeb9e fix(Scripts/Ulduar): cast electrical charge only if player dies (#3480) 2020-10-16 21:24:39 +02:00
Kargatum
5e20b46812 refactor(Core/Scripts): restyle scripts lib with astyle (#3467) 2020-10-11 10:35:34 +02:00
Krath
ce8db433cf fix(Scripts/Ulduar): Hodir Door (#3346)
Co-authored-by: Krath <affannimattia@libero.it>
2020-09-12 20:10:12 +02:00
Stefano Borzì
51330f54d8 refactor(Core/Misc): remove the ternary operator when used improperly (#3327) 2020-09-10 12:29:23 +02:00
Kitzunu
1f89282b22 refactor(Core): NULL -> nullptr (#3275)
* NULL to nullptr

* NULL to nullptr

* NULL to nullptr

* NULL to nullptr

* NULL to nullptr

Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
2020-08-31 11:55:09 +02:00
gengarshadowball
95251dfd2d fix(Core/Dungeon): Halls of stone doors (#2646)
* Improved logic and DX

Simplified the Developer Experience reading such a messy code and removed some duplicated useless conditions

* fix(core/dungeon): Halls of stone door

The door is closed before Maiden of Grief and Krystalus die.

* Revert "Merge commit 'refs/pull/2634/head' of https://github.com/azerothcore/azerothcore-wotlk into pr-2634"

This reverts commit 04e8ac45e4d868eda4a89229f3721ee699ba4be5, reversing
changes made to 2fa9f5c249.

* Review changes

* improvement to check

Co-authored-by: Yehonal <yehonal.azeroth@gmail.com>
2020-03-03 14:00:40 +01:00
Kaev
999d588c37 fix(Core): Fixed a few crashes/bugs that were found via static code analysis (#2617) 2020-01-25 14:26:38 +01:00
Viste
e22d78ecd6 refactor(Core): rename namespaces and macros to acore (#2454) 2019-12-01 13:13:31 +01:00
Francesco Borzì
3a43e8c415 feat(Core): enable C++17 (#2234)
Co-authored-by: Winfidonarleyan <dowlandtop@yandex.com>
2019-09-02 13:54:10 +07:00
ArashGorge
bad8390dee fix(Core/Dungeon/Boss Script): Halls of Stone - Brann Respawn - Naxxaramus Noth Teleport phase Bug - Ulduar StormcCaller Brundir inFly Die Bug (#2063) 2019-07-25 09:55:21 +02:00
Dresmyr
8b97440450 fix(Core/Boss Scripts): Update boss_hodir.cpp - Fix ice shards cast speed in 10 man (#2050) 2019-07-18 23:39:15 +02:00
Pondaveia
37682632fe fix(Core/Raid): Ulduar - Kologarn (#1785)
* Kologarn bugfixes

- Doors not closing or opening during and after encounter
- Petrifying gaze should have a start window so the raid doesn't wipe on pull

* Update src/server/scripts/Northrend/Ulduar/Ulduar/boss_kologarn.cpp

* override canceled the repeats
2019-05-02 10:40:47 +01:00
Kargatum
b6cb9247ba Refactor(Core/Gossip): Replacing old macros with new (#1338)
* Correct support new macro
2019-03-25 21:10:57 +07:00
Kargatum
1f4f318705 Rewrite(Core/BanManager): Rewrite Ban system (#1576)
* Added ban manager
* Delete ban functions in world class
* Separate ban account to (ban account, ban ip, ban character)
* Support world announce
2019-03-25 10:00:17 +07:00
Nefertumm
46f0de16fe Fix(Core/DB/Ulduar): Assembly of Iron (#1615) 2019-03-24 18:06:07 +03:00
Nefertumm
65251a2b4e Fix(Core/Ulduar): Multiple fixes to Flame Leviathan (#1487)
* Multiple fixes to FL
* Move who check to CanAIAttack
2019-03-03 14:33:00 +03:00
Nefertumm
c15206fc15 Revert "feat(core): Ensure that all actions are compared to fixed point in time (#1236) (#1458)" (#1471)
This reverts commit 51b8773528.
2019-02-15 15:14:49 -03:00
Viste(Кирилл)
51b8773528 feat(core): Ensure that all actions are compared to fixed point in time (#1236) (#1458)
i.e. world update start
2019-02-14 19:22:17 +01:00
Viste(Кирилл)
cb81f3c17a feat(Core/LOS): restruct LOS functions and add LineOfSight check (#1459) 2019-02-13 22:24:04 +01:00
Stoabrogga
7a9f09341f chore(PCH): remove "ScriptPCH.h" from cpp scripts (#1423)
remove "ScriptPCH.h" from cpp scripts as it is intended to be used as precompiled header for the build process only
2019-02-10 14:50:44 +01:00