Commit Graph

156 Commits

Author SHA1 Message Date
Kitzunu
5954d9c739 refactor(Core/Misc): Define & Rename Attributes (#5311) 2021-04-28 14:55:24 +02:00
KiK0
310f856932 fix(Core/Spells): Do not allow the use of the master's call while the pet is controlled [port from TC] (#5273) 2021-04-27 15:54:58 +02:00
Kitzunu
eac6cdd5e0 fix(Core/Spell): Apply AURA_STATE_FAERIE_FIRE to Faerie Fire (#5319) 2021-04-26 13:38:41 +02:00
UltraNix
f4c226423d feat(Core/Misc): implement ObjectGuid class (port from TC) (#4885) 2021-04-25 22:18:03 +02:00
KiK0
45d92751dd fix(Core/Spells): Cloak of Shadows: Spell [Pounce Bleed] should not be (#5305) 2021-04-24 13:15:26 -04:00
Kargatum
4af4cbd3d9 feat(Core/Logging): rework logging (#4692)
* feat(Core/Logging): rework logging

* correct level for sql.sql

* del unused config options

* Correct build

* correct after merge

* whitespace

20:29:37 1. 'Player.cpp'. Replace (1)
20:29:37 2. 'ObjectMgr.cpp'. Replace (3)

* 1

* correct logging

* correct affter merge

* 1

* 2

* LOG_LEVEL_WARN

* #include "AppenderDB.h"

* 3

* 4

* 5

* 1. 'WorldSocket.cpp'. Replace (1)

* 6

* 1
2021-04-17 11:20:07 +02:00
Kitzunu
33aeadf8b6 refactor(Core/Misc): Define & Rename Attributes and flags (#5193) 2021-04-15 14:16:39 +02:00
Kargatum
2b3d46bd4f feat(Core/Hooks): added collection of hooks to extends AC (#3047)
This collection of hooks comes from the Maelstrom project. It allows to release modules such as :
- 3v3-soloqueue
- 1v1 arena
- pvestats

and many others
2021-04-13 13:26:39 +02:00
Kitzunu
3054bf8233 chore(Core/SpellMgr): Indentation (#5145) 2021-04-11 12:04:20 +02:00
Kitzunu
c7e8310624 feat(Core/Spell): Define SPELL_AURA_PREVENT_DURABILITY_LOSS (#5148) 2021-04-09 20:56:31 +02:00
Footman
c32cd06a78 fix(Core/Movement): fix multiple creature movement issues (#5097) 2021-04-09 20:56:19 +02:00
Kitzunu
91dfedd080 fix(Core/Spell): make use of SPELL_ATTR3_IGNORE_PROC_SUBCLASS_MASK (#5005) 2021-04-07 23:10:12 +02:00
Kitzunu
88ddc24464 fix(Core/Spell): Make use of SPELL_ATTR6_DONT_CONSUME_PROC_CHARGES (#5004) 2021-04-07 23:07:35 +02:00
UltraNix
6eeb088211 fix(Core/Movement): Corrected calculating ground level in shallow water. (#5114) 2021-04-04 23:22:13 +02:00
Silker
6dc4ca8503 fix(scripts/Naxx): The art of Naxxramas (2/2) (#5057) 2021-04-02 21:57:00 -06:00
Stefano Borzì
d4b8defcd8 Revert "feat(Core/Spells): improve SpellCheckRange(), spell cast when dismounting, falling or levitating spells (#3384)" (#5052)
This reverts commit b424273574.
2021-03-30 12:55:07 +02:00
Kargatum
c053e111d3 fix(Scripts/Commands): correct reloading creature_template table (#5020) 2021-03-30 09:55:05 +07:00
Kitzunu
166ed0d7c2 fix(Core/Spell): Restricted Flight Area (#5016) 2021-03-28 12:20:39 +02:00
Stefano Borzì
b424273574 feat(Core/Spells): improve SpellCheckRange(), spell cast when dismounting, falling or levitating spells (#3384) 2021-03-26 15:56:35 +01:00
Kitzunu
fb5d2fa2e5 fix(Core/Spell): Make use of SPELL_ATTR7_IGNORE_COLD_WEATHER_FLYING (#4933) 2021-03-24 18:19:57 -06:00
Kitzunu
83e430f28a fix(Core/Spell): Make use of SPELL_ATTR6_NOT_RESET_SWING_IF_INSTANT (#4931) 2021-03-24 16:58:41 -06:00
UltraNix
adf627cb65 feat(Core/Spells): Implemented SPELL_AURA_DETECT_AMORE. (#4850) 2021-03-21 15:18:55 +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
Cláudio Costa
aea4ce3094 fix(scripts/Ulduar): Improve Hodir (#4703) 2021-03-20 08:36:30 -06:00
Stefano Borzì
d82d2041b4 fix(Core/SpellEffect): Increase speed of cat charge (#4795) 2021-03-19 22:54:25 -06:00
Francesco Borzì
f6a17164be fix(Core/License): issue with old files license (#4762) 2021-03-17 09:46:01 -06:00
Cláudio Costa
99c2efe3c2 fix(Core): Rogue - Premeditation fix (#4695) 2021-03-16 16:58:56 -06:00
r0m1ntik
b24ee3fc10 fix(Core/Spells): Warlock Death Coil shouldn't be able to crit (#4629) 2021-03-12 15:12:43 +01:00
Stefano Borzì
7988717eef fix(Code/Fishing): improve timing of fishing (#4733) 2021-03-07 13:13:29 +01: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
82eb8b44d1 refactor(Core/Spell): Pascal Case some SpellEntry types (#4432) 2021-02-08 19:01:37 -05:00
Vox
94173dbbd9 fix(Core/Spell): Restore Stealth remove check (#4491) 2021-02-07 14:08:10 -05:00
Kitzunu
440d4191ae fix(Core/Spell): Restore SPELL_ATTR0_CU_AURA_CC (#4472) 2021-02-07 09:06:27 -05:00
Kitzunu
d902411171 fix(Core/Spell): Clearcasting duration (#4422) 2021-02-06 21:06:30 -05:00
Kitzunu
9fd6f1079b fix(Core/Spell): SPELL_EFFECT_TELEPORT_UNITS_FACE_CASTER to face caster (#4351)
* fix(Core/Spell): SPELL_EFFECT_TELEPORT_UNITS_FACE_CASTER to face caster

* cherry-pick 28353e920b

Co-Authored-By: Meji <2695278+meji46@users.noreply.github.com>

* [[nodiscard]]

* return;

* fix last thing

* build

* Revert "build"

This reverts commit c892cc292f3592c5089840e393b525f74904779b.

* Update Object.h

* Update Object.h

* Update Object.h

Co-authored-by: Meji <2695278+meji46@users.noreply.github.com>
2021-02-03 17:06:37 +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
Kitzunu
683ddf6c8d fix(Core/Spell): Detect Undead (#4310) 2021-02-01 16:21:33 +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
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
Kitzunu
628c75d67f fix(Core/SpellMgr): Add cooldown to some vehicle spells (#4300)
* fix(Core/SpellMgr): Add cooldown to some spells

* author and spellscript

Co-Authored-By: Wyrserth <43747507+Wyrserth@users.noreply.github.com>
2021-01-31 03:09:50 +01:00
Kitzunu
c5ce3e4460 fix(Core/Spell): improve check in SPELL_EFFECT_CREATE_ITEM(_2) (#4296)
* fix(Core/Spell): items disappearing in Spell::CheckItems()

* 18b36734f6

* remove GetFreeInventorySpace

* restore p_caster to make other PR needing to merge before this

* fix build

* fuck github conflicts
2021-01-31 02:41:49 +01:00
r0m1ntik
647ce5bed7 fix(Core/Quest): A Tangled Skein (#4237)
Co-authored-by: r0m1ntik <r.badanin94@yandex.ru–>
2021-01-29 20:29:04 +01:00
Kitzunu
520c4c6426 fix(Core/Spell): do not create new items when inventory is full (#4298) 2021-01-27 18:26:17 +01:00
Kitzunu
879468506f chore(Core/Global): Fix grouping of Worldserver initialization (#4130) 2021-01-25 20:50:53 +01:00
Degen
5a1bb5bc66 fix(Core/SpellMgr): Essence of Wintergrasp only applies if config is enabled (#4110) 2021-01-17 20:14:27 +01:00
Kitzunu
1cc5518147 fix(Core/Spell): Killing Spree range (#4097)
Co-authored-by: Keader <keader.android@gmail.com>
2021-01-17 00:40:30 +01:00
Silker
3f79f16960 fix(Core/SpellMgr): Death Plague stacks (#4299) 2021-01-16 12:52:06 -06:00
Kitzunu
43f59c4c82 feat(Core/Player): implement GetFreeInventorySpace() (#4297) 2021-01-16 17:33:30 +01:00
Stefano Borzì
df600f9946 fix(Core/CreatureAI): revert NPC repositioning and path system (temporarily) (#4274) 2021-01-14 19:17:34 +01:00