Commit Graph

72 Commits

Author SHA1 Message Date
Chero
143fad42c7 fix(Core/Unit): Set AI notification when setting/removing contested PvP flags. (#5076) 2021-04-08 11:34:22 +02:00
Kitzunu
07f2087683 fix(Core/Spell): Handle ClearAllDebuffs (#5006) 2021-04-07 13:30:58 +02:00
UltraNix
63d78a2f9e fix(Core/Spells): Ensures that procs triggered by another aura are proccessed in the first place. (#5075) 2021-04-06 14:24:46 +02:00
Kitzunu
eea37f1213 fix(Core/Spell): Make use of SPELL_ATTR4_DONT_REMOVE_IN_ARENA (#4990) 2021-04-06 14:16:08 +02:00
Kargatum
c053e111d3 fix(Scripts/Commands): correct reloading creature_template table (#5020) 2021-03-30 09:55:05 +07:00
UltraNix
6c7cc1690f fix(Core/Creatures): Fixed displaying trainer npcflags that are not valid to player. (#4848) 2021-03-21 15:18:41 +01:00
Kitzunu
9f354db7be feat(Core/Creature): Implement c_t_r & c_t_s (#4359) 2021-03-21 15:15:59 +01:00
Petric
5aed4dd193 fix(Core/Commands): .cheat god lowering hp to 1 and .cheat power not refilling power (#3299) 2021-03-21 15:15:00 +01:00
Francesco Borzì
f6a17164be fix(Core/License): issue with old files license (#4762) 2021-03-17 09:46:01 -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
Footman
522eb9a7e4 fix(Core/Pathfinding): Creatures regen health, spells LOD (#4509) 2021-02-10 00:37:05 +01:00
Kitzunu
440d4191ae fix(Core/Spell): Restore SPELL_ATTR0_CU_AURA_CC (#4472) 2021-02-07 09:06:27 -05: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
Kitzunu
fcad2b56ae refactor(Core/Spell): Define some unknown spell attributes (#4305)
Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2021-01-31 23:03:44 +01:00
Stefano Borzì
df600f9946 fix(Core/CreatureAI): revert NPC repositioning and path system (temporarily) (#4274) 2021-01-14 19:17:34 +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
Francesco Borzì
dd8abcd87e chore(CI/codestyle): fix build (#4241) 2021-01-09 12:06:02 +01:00
Kargatum
ea93a5c1a1 feat(CI/Codestyle): added codestyle check (#3668) 2021-01-09 11:59:50 +01:00
Kitzunu
c5fe21fe9a fix(Core/Spell): Earthliving weapon proc (#4015) 2021-01-08 20:18:36 +01:00
Yehonal
aeab8d8bc6 fix(Core/Crash): safe calculation in GetMeleeAttackPoint (#4235)
Should solve: https://github.com/azerothcore/azerothcore-wotlk/issues/4225
2021-01-08 16:55:51 +01:00
Stefano Borzì
b2761626fe feat(Core/CreatureAI): improve npc position during the combat (#3369)
+ tangent equation to find correct angle and distance when moving

+ implemented proper backward

* Improved performance + random angle margin

* chore: add tollerance calculation in instance

* improved LOS checks with movements

* implemented collisions using raycast (imported by TC)

+ improved collision detection for CanReachPositionAndGetCoords

+ improved collision check

+ set correct flags for the backward movement

+ first implementation of slope angle (to improve)

Co-authored-by: Yehonal <yehonal.azeroth@gmail.com>
2021-01-04 20:23:08 +01:00
Francesco Borzì
d4a58700d4 refactor(Core): apply clang-tidy modernize-use-override (#3817) 2020-12-06 18:04:55 +01:00
FALL1N1
0baecd3e8f fix(Core/Pathfinding): Improve - Point movement (#3658) 2020-12-01 10:58:00 -06:00
Andrius Peleckas
d7becdae27 feat(Core/Spells): Functions will return cast result (#3635) 2020-11-13 08:00:07 -06:00
Goatform
5254aec645 fix(Core/Unit): ranged auto-attack sound issue if a player attacks target not in LOS (#3610) 2020-11-07 18:23:42 +01:00
Stefano Borzì
d07a34c1d5 feat(Core/Unit): don't allow additions threat in evade mode and implement AURA_INTERRUPT_FLAG_LEAVE_COMBAT (#3381) 2020-10-23 22:12:37 +02:00
Kitzunu
036a8c2450 fix(Core/Unit): Eating anim (#3472) 2020-10-13 10:23:18 +02:00
Kargatum
a2b26272d2 refactor(Core/Game): restyle game lib with astyle (#3466) 2020-10-12 10:08:15 +02:00
Francesco Borzì
b61ae8abcd fix(Core/Misc): all GCC warnings (#3457) 2020-09-14 17:31:12 +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
Viste
ffd03582c9 fix(Core/Unit): melee attack through LoS (#3265) 2020-08-18 14:07:32 +02:00
Francesco Borzì
d2cc3fcbc2 feat(Docker): update to Ubuntu 20.04 + more improvements (#3277) 2020-08-13 00:25:20 +02:00
gengarshadowball
0b35a24053 fix(Core/Spell): Implement SPELL_ATTR0_CU_DONT_BREAK_STEALTH (#3056)
* Implement the ability to add SPELL_ATTR0_CU_DONT_BREAK_STEALTH on spells from DB

Co-authored-by: Shadowball Gengar <shadowballgengar60@gmail>
2020-06-19 12:00:21 +02:00
Viste
38e8503d21 fix(Core/Misc): fix some exploits (#2630) 2020-02-18 08:26:12 +01:00
Stoabrogga
30fa1ae3b4 fix(Core/Unit): Fix Guardian Pets clearing combat state (#2619) 2020-02-13 08:12:52 +01:00
Kaev
2fa9f5c249 fix(Core): potential crashes/bugs reported by static analysis #2 (#2622) 2020-02-03 07:52:27 +01:00
Nefertumm
59234f8f4b fix(CORE): Missing override on various functions (#2602) 2020-01-21 19:03:15 -03:00
Viste
e22d78ecd6 refactor(Core): rename namespaces and macros to acore (#2454) 2019-12-01 13:13:31 +01:00
Stoabrogga
fae7ae95a3 fix(Core/GridNotifiers): increased visibility for large creatures, part 2 (#2378) 2019-11-14 08:04:41 +01:00
Vitoco
4899a7b11d fix(Core/Spell): Glyph of Shadow Word: Death (#1900) 2019-11-04 07:52:17 +01:00
Viste
854b426978 feat(Core): Added ABORT() macro to prevent the usage of ASSERT(false) as a quick hack to crash the core misusing assert (#2273) 2019-09-26 09:51:33 +02:00
GMKyle
58f3cfe387 fix(Core/Hunter): Stable Master, exotics pets management, tame validations. (#2100) 2019-09-25 18:29:18 +02:00
Stoabrogga
e314a0c716 feat(Core/Player): Additional option for worldserver config parameter "InstantFlightPaths" (#2246) 2019-09-04 01:19:57 +02:00
mik1893
7954a2a07e Creature type flags (#2195)
fix(Core/Creature): refactoring creature type flags and adding CREATURE_TYPE_FLAG_CAN_COLLIDE_WITH_MISSILES - closes #1984
2019-08-16 12:15:14 +01:00
Kargatum
824a80005c Refactor(Core/Misc): Remove remaining COMPILER_HAS_CPP11_SUPPORT related macros (#1627)
* Delete macros UNORDERED_MAP
* Delete macros UNORDERED_SET
2019-03-26 00:01:56 +07:00
Viste(Кирилл)
03bfbf4f7e Fix(Core/Player): fix periodic eating and drinking emotes (#1602) 2019-03-23 11:35:04 +03:00
Francesco Borzì
0758677578 feat(core): allow to debug KickPlayer() (#1549) 2019-03-05 22:58:40 +01:00
Nefertumm
40f68ab026 feat(Commands): Added cheat commands (#1412) 2019-02-24 18:35:08 +01:00