Commit Graph

249 Commits

Author SHA1 Message Date
UltraNix ae7b452fdf fix(Core/Objects): LoS calculation (#5084) 2021-04-07 19:33:38 +02:00
Kitzunu 07f2087683 fix(Core/Spell): Handle ClearAllDebuffs (#5006) 2021-04-07 13:30:58 +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
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
UltraNix fdc29c7a02 feat(Core/Creatures): extend mob leash mechanic assist in-combat creatures (#4897) 2021-04-05 15:35:29 +02:00
Cláudio Costa 94273da084 fix(Core): Ghost property fix (#5033) 2021-04-05 12:38:32 +02:00
UltraNix 6eeb088211 fix(Core/Movement): Corrected calculating ground level in shallow water. (#5114) 2021-04-04 23:22:13 +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
UltraNix 9ca4a23ef3 fix(Core/Creatures): Fixed unitialized varibale implemented in 728d018. (#5042)
- Closes #5030

Co-authored-by: UltraNix <ultranix@gmail.com>
2021-03-28 22:29:50 +02: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
Peter 555862f059 fix(Core/Gameobject): Spell spawned chests should not despawn on loot (#4413)
* Fix despawning temporary lootable objects

* Fix codestyle

* Add comment

* Fix indendation

Co-authored-by: Zoidwaffle <zoidwaffle@gmail.com>
2021-03-28 01:02:29 +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
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 1d5cc1fb74 feat(Core/Maps): Use a fixed offset instead of full collision height when retrieving floor Z. (#4909) 2021-03-21 15:20:06 +01:00
Wojciech Nosal e06d30e686 fix(Core/Creature): Respawning mobs missing aggro "grace period" (#4893) 2021-03-21 15:19:35 +01: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
Hacki95 2031e55ec7 fix(DB/Core) Fix the CLS damage system and update creature_classlevelstats (#4749)
* Fix the CLS dmg system

Thanks to TC: https://github.com/TrinityCore/TrinityCore/commit/ccfa82e7d516c9d280fc7214fcf3672397c741ff
2021-03-19 17:26:30 -06: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 28f1dc5c0c refactor(Core): replace NULL with nullptr (#4593) 2021-03-02 01:34:20 +01:00
Kargatum dbefa17a53 feat(Core/Config): rework config and delete ACE inherited (#4608) 2021-02-28 14:37:03 +01:00
Kargatum b9e132a941 chore(Misc): correct double includes (#4647) 2021-02-26 17:44:08 +07: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
Kitzunu 812a744371 fix(Core/SAI): Do not reset HP with SMART_ACTION_UPDATE_ENTRY (#4486)
Co-Authored-By: Wyrserth <43747507+Wyrserth@users.noreply.github.com>
2021-02-13 14:53:44 -05: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
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
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 440d4191ae fix(Core/Spell): Restore SPELL_ATTR0_CU_AURA_CC (#4472) 2021-02-07 09:06:27 -05:00
Footman e7bfbe7651 fix(Core/Pathfinding): pets chase & transport (#4451) 2021-02-06 20:22:15 -05: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 9f47c83c11 fix(Core/Player): Prevent looting already looted items (#4420) 2021-02-05 06:38:44 -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 https://github.com/TrinityCore/TrinityCore/commit/28353e920b531b7dd221ac926049f5a68b75e7ec

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 6e1fb0d525 feat(Core/Creature): implement c_t->spell_school_immune_mask (#4358)
* feat(Core/Creature): implement spell_school_immune_mask

* https://github.com/TrinityCore/TrinityCore/commit/ae878e18ef121b7b1960f40f2b0f99debd2155d8

Co-Authored-By: Wyreth <32145860+Wyreth@users.noreply.github.com>

* Import from TC

* just capitalize sql keywords

* Update rev_1611769264588956600.sql

Co-authored-by: Wyreth <32145860+Wyreth@users.noreply.github.com>
2021-02-03 03:44:09 +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
r0m1ntik c9b46beae2 fix(Core/Spell): Glyph apply bonus (#4206) 2021-01-26 21:55:33 +01:00
Kitzunu 17d2560ffa fix(Core/Creature): Implement CREATURE_FLAG_EXTRA_NO_SELL_VENDOR (#4233) 2021-01-26 14:12:21 +01:00