Commit Graph

174 Commits

Author SHA1 Message Date
Axel Cocat a355b4d27c fix(Core): fix instance portal not resurrecting when corpse is not spawned (#6106) 2021-05-29 15:37:34 +02:00
Kitzunu f1b43a8976 fix(Core/Player): Weapon skill gain (#5961) 2021-05-28 00:49:24 +02:00
Kargatum ea5f5f2072 feat(Core/RealmList): port TrinityCore realm api (#5626)
* feat(Core/RealmList): port TrinityCore realm api

* 1

* whitespace cleanup

* Update data/sql/updates/pending_db_auth/rev_1620114805872279900.sql

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

* 1

* 2

* Update data/sql/updates/pending_db_auth/rev_1620114805872279900.sql

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>

* `

* 1

* small corrects

* finish maybe

* realm.Id.Realm

* ws

* 1

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2021-05-27 00:12:46 +02:00
Kargatum 78e1719c80 feat(Core/Misc): includes cleanup (#5953) 2021-05-26 19:00:08 +07:00
UltraNix 8dd58ebb5b fix(Core): Memleaks fixes - Part II. (#5760) 2021-05-14 10:15:45 +02:00
Axel Cocat 127a3dd65d fix(Core): Reputation gain rate when nearby party members are dead (#5605) 2021-05-08 15:43:17 -06:00
UltraNix 2189ac0b08 feat(Core/Anticheat): Preparation to implement new passive anticheat … (#5516) 2021-05-07 18:10:44 +02:00
UltraNix 086b8f9dac fix(Core/Loot): Fixed looting personal items while being in master loot group. (#5389) 2021-04-29 15:41:50 +02:00
Kargatum 7fa1cb1c1a fix(Core/Player): correct add guid for packet SMSG_CLIENT_CONTROL_UPDATE (#5540) 2021-04-29 15:07:03 +02:00
Kitzunu 5954d9c739 refactor(Core/Misc): Define & Rename Attributes (#5311) 2021-04-28 14:55:24 +02:00
UltraNix f4c226423d feat(Core/Misc): implement ObjectGuid class (port from TC) (#4885) 2021-04-25 22:18:03 +02:00
Chaouki Dhib 2d21bfc915 feat(Core/Movement): time synchronisation to better interpret client timestamps (#5300) 2021-04-23 15:53:09 +02:00
Silker 0d36f0b7a5 fix(Core/Player): Enable water walking when dead on instances (#5393) 2021-04-21 19:12:40 -06: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
Kargatum b2861be1cd feat(Core/Threading): replace ace threading (#4821) 2021-04-16 19:45:29 +02:00
Kitzunu 33aeadf8b6 refactor(Core/Misc): Define & Rename Attributes and flags (#5193) 2021-04-15 14:16:39 +02:00
KiK0 92668be4f3 feat(Core/Player): detect Spanish clients (#5186) 2021-04-13 17:57:34 +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
Kargatum 53ce87d0f7 feat(Core/Database): implement db loader (#4431) 2021-04-12 10:09:13 +02:00
Kitzunu c7e8310624 feat(Core/Spell): Define SPELL_AURA_PREVENT_DURABILITY_LOSS (#5148) 2021-04-09 20:56:31 +02:00
Cláudio Costa 1367475a59 fix(Core): Warning C4018 (#5091) 2021-04-09 09:34:14 +02:00
UltraNix 3de7d14620 fix(Core/Spells): Spells learned from skills should be visibile immediately in the spellbook and chat. (#5106) 2021-04-08 23:09:17 -04:00
AbraKabastard a2c034dc48 fix(Core/Player): Allow sharing completed in log quests. Send push to party on failed reason seasonal (#4880) 2021-04-08 23:07:55 +02:00
UltraNix 54e371e0e7 feat(Core/PvP): Set 30 sec timer before turn off FFA PvP flag. (#5090) 2021-04-08 13:00:45 +02:00
UltraNix c19ea1f7ad fix(Core/Loot): Items below group threshold should not be blocked by master looter. (#5041) 2021-04-07 13:30:34 +02:00
Cláudio Costa 94273da084 fix(Core): Ghost property fix (#5033) 2021-04-05 12:38:32 +02:00
Kargatum c053e111d3 fix(Scripts/Commands): correct reloading creature_template table (#5020) 2021-03-30 09:55:05 +07:00
Petric f11d3a5402 feat(CORE/Instance): access_requirement db refactor and improved output (#3696) 2021-03-29 10:24:52 -06:00
Cláudio Costa 2a601a1659 fix(Core): Implement retail-like fishing skill-up functionality (#4809) 2021-03-28 14:20:25 -04:00
Kitzunu 166ed0d7c2 fix(Core/Spell): Restricted Flight Area (#5016) 2021-03-28 12:20:39 +02:00
Kitzunu fb5d2fa2e5 fix(Core/Spell): Make use of SPELL_ATTR7_IGNORE_COLD_WEATHER_FLYING (#4933) 2021-03-24 18:19:57 -06:00
UltraNix 0e8cb3e4b2 feat(Core/Game): Add option to disable trading BoP items among raid members (#4895) 2021-03-24 15:19:58 -06:00
UltraNix 00f7a6bbde fix(Core/Maps): Include collision height in underwater status calculations. (#4855) 2021-03-21 15:19:07 +01: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
Cláudio Costa 990dbfe297 fix(Core): Removing auras from spells that trigger taxi (#4820) 2021-03-18 16:51:36 +01:00
Francesco Borzì f6a17164be fix(Core/License): issue with old files license (#4762) 2021-03-17 09:46:01 -06:00
dunjeon 8108f78762 feat(Core/Hook): OnSendInitialPacketBeforeAddToMap (#4645) 2021-03-13 23:46:58 +01:00
r0m1ntik 3162ba3b24 fix(Core/player): Fix localized gossip_menu_option (#4584) 2021-03-03 20:02:19 -06:00
Kitzunu dbc0ff6554 refactor(Core): sort #includes alphabetically (#4579) 2021-02-24 22:34:42 +01:00
Francesco Borzì a4115862de feat(Core/Hooks): OnBattlegroundDesertion (#4619) 2021-02-21 22:12:25 +01:00
r0m1ntik 8dbdffab92 fix(Core/Spell): Divine Protection reduces fall damage (#4618) 2021-02-21 20:23:46 +01:00
Francesco Borzì a63e41e5b3 feat(Core/Conf): Rate.RewMoneyMaxLevel (#4546) 2021-02-12 16:20:31 +01:00
Walter Pagani 5106e8234b fix(Core): loot party (#4409) 2021-02-12 13:03:49 +01:00
Francesco Borzì 8915ab1362 feat(Hooks/PlayerScript): ShouldBeRewardedWithMoneyInsteadOfExp (#4445) 2021-02-09 14:09:41 -05:00
Kitzunu 05a8217270 refactor(Core/Player): add helper method for PLAYER_FLAGS_DEVELOPER (#4395)
Co-Authored-By: ForesterDev <11771800+ForesterDev@users.noreply.github.com>
2021-02-08 16:55:04 -05:00
Kitzunu 9f47c83c11 fix(Core/Player): Prevent looting already looted items (#4420) 2021-02-05 06:38:44 -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
r0m1ntik c9b46beae2 fix(Core/Spell): Glyph apply bonus (#4206) 2021-01-26 21:55:33 +01:00