Commit Graph

161 Commits

Author SHA1 Message Date
Kitzunu 33aeadf8b6 refactor(Core/Misc): Define & Rename Attributes and flags (#5193) 2021-04-15 14:16:39 +02:00
Kargatum 53ce87d0f7 feat(Core/Database): implement db loader (#4431) 2021-04-12 10:09:13 +02:00
Footman c32cd06a78 fix(Core/Movement): fix multiple creature movement issues (#5097) 2021-04-09 20:56:19 +02:00
Kitzunu 4765ab3d59 fix(Core/Script): Rename Pinnacle & Ramparts scripts (#5175) 2021-04-07 21:57:28 +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 6dc4ca8503 fix(scripts/Naxx): The art of Naxxramas (2/2) (#5057) 2021-04-02 21:57:00 -06:00
Kargatum c053e111d3 fix(Scripts/Commands): correct reloading creature_template table (#5020) 2021-03-30 09:55:05 +07:00
Silker 9bf2800ca6 fix(scripts/DB): Implement "Marked immortal guardian" (#5046) 2021-03-29 08:42:15 -06:00
Silker 7a5e4be7a2 fix(scripts/UtgardeKeep): Improve Dalronn & Skarvald (#5044) 2021-03-28 15:30:52 -06:00
Silker 8ba442bda2 fix(scripts/Naxx): The art of Naxxramas (1/2) (#4076) 2021-03-23 12:30:09 -06:00
Kitzunu 9f354db7be feat(Core/Creature): Implement c_t_r & c_t_s (#4359) 2021-03-21 15:15:59 +01:00
Cláudio Costa aea4ce3094 fix(scripts/Ulduar): Improve Hodir (#4703) 2021-03-20 08:36:30 -06:00
Francesco Borzì f6a17164be fix(Core/License): issue with old files license (#4762) 2021-03-17 09:46:01 -06:00
UltraNix de2c57f6cc fix(scripts/VoA): Vault of Archavon (#4853) 2021-03-17 09:06:24 -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
Footman 695a7402ad fix(Core): creature movement bugs (#4544)
- fix UpdateEnvironmentIfNeeded was changing flying creature status all the time. closes: #4447
- fix hovering state was causing bugs at #4466
- add animation state priority: fly > hover > ground

Co-authored-by: Wotex <fm@gmail.com>
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
Co-authored-by: Patrick Lewis <pat@lo5t.com>
2021-02-12 11:42:41 +01:00
Kitzunu bfcc3c6f87 refactor(Core/Spell): Move some SpellImmune from script to db (#4381)
* refactor(Core/Spell): Move some SpellImmune from script to db
2021-02-05 18:57:51 -05:00
Kitzunu 0d52b4ca4a feat(Core/Spell): Implement ValidateSpellInfo (#4323)
* feat(Core/Spell): Implement ValidateSpellInfo

* cherry-pick from https://github.com/TrinityCore/TrinityCore/commit/2b5d7eef3a091e67c27e853d43ac0bebbfa67531 & https://github.com/TrinityCore/TrinityCore/commit/a0a158b5b851db7e2c16819ec89e913d914a3aba

* 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 d5c41aa5d7 fix(DB/Quest): Taken by the Scourge (#4079) 2021-01-16 13:43:49 +01:00
WiZZy b9375ffff7 fix(Core/The Oculus) Drakos dragon keepers (#3531) 2021-01-12 14:46:16 +01:00
Kitzunu b0aff365a9 chore(core): Remove malformed whitespace (#4248) 2021-01-10 18:20:45 +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
Vox 9592028ad1 fix(scripts/instance): Force correct gossip/text updates (#3838) 2021-01-08 13:34:05 +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
Silker 26bf415ce0 fix(scripts/Oculus): Reset Mage-Lord Urom's position at death (#4012) 2020-12-19 18:29:02 -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
Andrius Peleckas 01fa6257c8 fix(Scripts/ObsidianSanctum): Code revamp [1/2] (#3634) 2020-11-28 15:36:05 -06:00
Vox d4612c7ac6 fix(Scripts/ICC): Intro Event Timers and Text 2020-11-28 15:22:42 +01:00
Goatform 37d1f2be47 fix(Scripts/VOA): code-style improvements + bandwidth consumptio (#3632) 2020-11-27 12:50:50 +01: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
Patrick Lewis 6ef7627c69 fix(Script/ICC): Spirit Alarm and Deathbound Ward (#3592) 2020-11-04 14:32:33 -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
Arthas Wow 22f8195c14 fix(Core/Boss): Toravon Script Mechanics (#2868) 2020-10-07 12:17:36 +02:00
Patrick Lewis b67c30e263 fix(Core/Script) npc Tom Hegger target player for aggro text (#3444) 2020-10-03 16:25:54 +02:00