Commit Graph

125 Commits

Author SHA1 Message Date
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
Kitzunu
879468506f chore(Core/Global): Fix grouping of Worldserver initialization (#4130) 2021-01-25 20:50:53 +01:00
Silker
0a8a7ef149 fix(Core): Activate creatures and objects during opening cinematics (#4045)
Co-authored-by: Si1ker <55638679+Sombranator@users.noreply.github.com>
Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
2021-01-22 01:03:30 +01:00
Francesco Borzì
8d5347b9ab fix(Core/QuestTracker): do not store quest if quest_id is null (#4027) 2021-01-20 01:14:04 +01:00
Kitzunu
43f59c4c82 feat(Core/Player): implement GetFreeInventorySpace() (#4297) 2021-01-16 17:33:30 +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
zxdhe121
ab8967c638 feat(Core): Another way to get talent points (#3773) 2020-12-20 19:26:00 -06:00
Meltie2013
282966c117 fix(Core): a typo introduced in the Rest & Inn Improvements (#3985) 2020-12-12 23:24:48 +01:00
Meltie2013
af53598fa2 fix(Core/Game): Rest & Inn Improvements (#3780) 2020-12-11 08:23:09 -06:00
Viste
755e30f916 fix(Core/Social): cleanup + fix crash in friend system (#3832)
fix crash when a friend or ignore get GUID 0 and also double friend list
2020-12-04 01:20:35 +01:00
Petric
5984e82f22 feat(Core/Script): Hooks for custom arena teams/types (#3508) 2020-11-29 15:04:38 -06:00
Francesco Borzì
35fb9f49d2 Revert "fix(Core/Player): Improve rested removal (#3715)" (#3762) 2020-11-25 05:28:56 -06:00
Kargatum
37ba988409 feat(Core/Misc): remove ACE Auto_Ptr (#3454) 2020-11-23 02:10:33 +01:00
Kitzunu
fb69db212f fix(Core/Player): Improve rested removal (#3715) 2020-11-19 10:11:56 -06:00
Kitzunu
2788d495f9 fix(Core/Conditions): Implement CONDITION_DAILY_QUEST_DONE (#3050) 2020-11-14 06:08:00 +01:00
placemolle
fc63d935b9 fix(Core/Item): Meta gems sometimes ignore added sockets (#3643) 2020-11-13 10:24:16 -06:00
Petric
b3a967db60 fix(Core): fixed crash happening when clearing old mail (#3604) 2020-10-24 10:42:35 +02:00
Petric
d5bb6ba1c4 refactor(Core/Mail): avoid big mail loading/saving time, only load 50 mails at a time (#3420) 2020-10-21 15:20:32 +02:00
Kargatum
a2b26272d2 refactor(Core/Game): restyle game lib with astyle (#3466) 2020-10-12 10:08:15 +02:00
Stefano Borzì
1910b4ab35 chore(Core/Player): remove useless SendQuestComplete (#3380) 2020-09-26 14:46:27 +02:00
Francesco Borzì
b61ae8abcd fix(Core/Misc): all GCC warnings (#3457) 2020-09-14 17:31:12 +02:00
Kargatum
e15a493927 feat(Core/Time): remove inherited ACE Time (#3455)
Co-authored-by: Viste <viste02@gmail.com>
2020-09-11 14:03:26 +02:00
Stefano Borzì
51330f54d8 refactor(Core/Misc): remove the ternary operator when used improperly (#3327) 2020-09-10 12:29:23 +02:00
Stefano Borzì
821e7d03e8 fix(Core/player): do not show zone at first login (#3358)
* Update AuctionHouseHandler.cpp

* fix(Core/player): do not show location at first login

* Update Player.cpp

Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
2020-09-08 22:49:54 +02:00
Moki
26c99c383f Core/Scripts: fix Nightfall proc chance and reduce it for victims with level above 60. (#3304)
* Core/Scripts: fix Nightfall proc chance and reduce it for victims with level above 60

Adding a TrinityCore commit eac9c1f0b9

* Update rev_1597581112860069800.sql

* Update rev_1597581112860069800.sql

Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
2020-09-01 14:19:09 +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
Kitzunu
73d725312d feat(Core/Config): CONFIG_INTERVAL_SAVE (#3171) 2020-08-20 15:50:32 +02:00
IntelligentQuantum
5d284f02a7 feat(Core/SendListInventory): Add multivendor function (#3172) 2020-08-20 11:00:11 +02:00
Kitzunu
b3b56bc655 fix(Core/Player): Display random properties in inspect (#3067)
5b7b21c362
Co-Authored-By: Paraciusz <paraciusz@users.noreply.github.com>
2020-07-14 23:36:08 +02:00
IntelligentQuantum
ec806d6c60 refactore(core/config): Move BG Report AFK To Conf (#2813) 2020-07-10 20:06:12 +02:00
Kitzunu
74e0f00229 fix(Core/Conditions): Add CONDITION_SOURCE_TYPE_QUEST_AVAILABLE (#2859)
* Merge CONDITION_SOURCE_TYPE_QUEST_ACCEPT & CONDITION_SOURCE_TYPE_QUEST_SHOW_MARK to CONDITION_SOURCE_TYPE_QUEST_AVAILABLE

Co-authored-by: SnapperRy <snapperry@users.noreply.github.com>
Co-authored-by: Aokromes <aokromes@gmail.com>
2020-05-13 08:46:05 +02:00