Commit Graph

936 Commits

Author SHA1 Message Date
Shauren
9e68fd1458 Core/Spells: Fixed spell duration scaling with combo points 2023-07-31 00:11:05 +02:00
Jeremy
f5461a1161 Battlegrounds/Buffs: Rework using areatriggers (#29171)
* Rework GameObject trap handling for buffs (removed radius hack)
* Add script for Old AreaTriggers
* Add script for new AreaTriggers
* Spawn AreaTriggers in Arathi Basin
2023-07-30 19:49:12 +02:00
Shauren
845f61e0a9 Core/GameObjects: Added stringid to gameobjects 2023-07-30 13:55:34 +02:00
Shauren
1acaed2af4 Core/Objects: Switch to using designated initializers instead of chaining functions for FindCreatureOptions 2023-07-29 23:46:31 +02:00
Teleqraph
88ff97c1f9 Core/Units: Added helper functions to modify UNIT_FLAG_UNINTERACTIBLE (#29159)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2023-07-20 19:09:27 +02:00
Shauren
0cea730fa2 Core: Update to 10.1.5 2023-07-12 16:29:00 +02:00
Meji
06d0b16f15 Core/Creatures: Move creature difficulty specific data from creature_template table to creature_template_difficulty (#28931) 2023-05-29 00:01:23 +02:00
Shauren
7881f0ef5f Core/Creatures: Allow summons to be initialized properly when summoner is not in world yet 2023-05-27 18:43:43 +02:00
Shauren
db55a034fd Fix dynamic linking build 2023-05-23 10:46:46 +02:00
Shauren
c76d96edfb Core/Objects: Fixed uninitialized variables in FindCreatureOptions 2023-05-22 10:40:57 +02:00
Shauren
3260b94dd6 Core/Misc: Replace string to int conversion functions from Common.h with c++17 std::from_chars based ones Trinity::StringTo 2023-05-13 15:46:27 +02:00
Shauren
cd8bba63a2 Core/PacketIO: Fixed CreateObject structure for areatriggers 2023-05-06 13:54:04 +02:00
Shauren
16bc74667e Core: Update to 10.1 2023-05-04 17:00:52 +02:00
Shauren
083b8d6c84 Core/Misc: Fix build with libc++
Closes #28909
2023-04-10 00:08:32 +02:00
Meji
d6133c78de Core/Units: Calculate HoverHeight from model data (#28899) 2023-04-09 18:17:08 +02:00
Shauren
422d521667 Core/Objects: Fixed ObjectGuid equality operator for GCC 10 (completely broken, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94924) 2023-04-07 00:26:23 +02:00
Shauren
7b31080258 Core/Misc: Modernize code a bit by replacing std::tie with either structured bindings or operator<=> 2023-04-06 17:46:58 +02:00
Meji
81ea6f54d9 Core/Creatures: Compute CombatReach and BoundingRadius using DisplayScale (#28863) 2023-03-30 18:54:27 +02:00
Shauren
922f60fa25 Core: Update to 10.0.7 2023-03-22 00:08:20 +01:00
Shauren
512f5138d4 Core/Creatures: Use togglable CREATURE_STATIC_FLAG_4_TREAT_AS_RAID_UNIT_FOR_HELPFUL_SPELLS instead of equivalent flag from creature_template.type_flag 2023-03-17 23:02:47 +01:00
Meji
5d5ca30b23 Core/Spells: Allow implicit targeting of serverside WorldObjects (#28827) 2023-03-12 17:12:36 +01:00
Shauren
cbdb255958 Partial revert of "Core/Spells: Moved SpellVisual functions from Unit to WorldObject" - client only accepts unit guids in these packets (orphan visuals not reverted)
This partially reverts commit 54f607641a.
2023-02-25 16:24:44 +01:00
Shauren
b6965b2c30 Core/Objects: Move EventProcessor update to WorldObject::Update 2023-02-05 16:24:13 +01:00
Shauren
4bec7233ba Core: Updated to 10.0.5 2023-01-28 01:53:26 +01:00
Shauren
3df16c12b7 Core/Scripts: Move EvadeReason outside of CreatureAI class 2023-01-19 21:23:06 +01:00
Shauren
d791afae1d Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard compatible api) 2023-01-08 21:16:53 +01:00
Shauren
92ed5e8af1 Core/Misc: Include cleanup, 2023 edition 2023-01-07 22:38:21 +01:00
Shauren
704142f15a Core/Maps: Fixed retrieving terrain info when on child maps 2022-12-31 18:22:40 +01:00
Shauren
9a96d32350 Core/Objects: Replace IsWithinDistInMap with IsWithinDist in grid searchers to avoid duplicate phase check (its also checked in Searcher classes) 2022-12-30 21:50:16 +01:00
Seyden
24d21301a6 Core/Objects: ignore database visibility conditions for personal clones (#28548) 2022-12-30 17:57:58 +01:00
Seyden
61c51b76c0 Core/Creatures: Implement StringId for Creatures, a custom identifier to make finding specific creatures in script easier (#28500)
Allows targeting specific spawns without hardcoding guids or find a bunch of different creatures with a single search

Co-authored-by: Shauren <shauren.trinity@gmail.com>
2022-12-27 16:39:05 +01:00
Seyden
9ab0679781 Core/Objects: Implement FindNearestCreatureWithOptions helper function (#28488)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2022-12-26 20:13:13 +01:00
Shauren
c3f385c48f Core/Phasing: Reduce differences between branches in GridNotifiers 2022-12-25 00:44:12 +01:00
Seyden
64a1c7735e Core/Creatures: Implemented AttackableBySummoner summon properties flag (#28489) 2022-12-22 23:45:35 +01:00
Shauren
21940405e0 Core/Battlegrounds: Made Battleground inherit ZoneScript
Closes #28480
2022-12-20 01:03:58 +01:00
Shauren
71b23c1b50 Core/Misc: GCC build fix
Closes #28604
2022-12-19 00:04:32 +01:00
Shauren
1c52c31274 Core/Spells: Added custom spell cast arg 2022-12-14 00:32:57 +01:00
Shauren
2d205506bf Core/Spells: Fixed spell effect value truncation when value is a large integer 2022-12-14 00:24:24 +01:00
Shauren
e98e1283ea Core: Updated to 10.0.2 2022-12-04 15:13:20 +01:00
Shauren
8630a55c58 Core/Movement: Rename splineElevation in MovementInfo to stepUpStartElevation (official name) 2022-11-12 21:42:37 +01:00
Shauren
fc37c42e55 Core/Misc: Added noexcept to move constructors and move assignment operators 2022-11-06 01:03:35 +01:00
Teleqraph
9a3e29d416 Core/Object: Implement FindNearestCreatureWithAura (#28410)
* Game/Object: Implement NearestCreatureEntryWithLiveStateAndAuraInObjectRangeCheck class and FindNearestCreatureWithAura method

* moved arguments
2022-10-30 22:29:03 +01:00
Shauren
2c79ce6791 Core/Conditions: Add const to condition checking functions 2022-10-24 00:15:43 +02:00
Shauren
f52f2cc67a Core/GameObjects: Implemented AllowMultiInteract for GAMEOBJECT_TYPE_GOOBER 2022-10-23 01:30:31 +02:00
Shauren
1011cb73c9 Core/GameObjects: Implemented gathering nodes (gameobject type 50) 2022-10-22 02:07:59 +02:00
Shauren
879c0cccfc Core/GameObjects: Implemented per player gameobject state and visibility for looted non-consumable chests 2022-10-21 22:11:00 +02:00
Shauren
1a1737b7cc Core/Creatures: Correct UNIT_DYNFLAG_TAPPED visibility logic 2022-10-18 10:57:51 +02:00
Shauren
133334a902 Core/Loot: Implemented personal loot and tag sharing for non-boss loot 2022-10-17 23:11:46 +02:00
Gosha
c1a9d7a3bc Core/PacketIO: Use ByteBuffer from UpdateData instead of copying to it after (#28347)
(cherry picked from commit 81bf8de989)
2022-10-13 12:37:18 +02:00
Gosha
423f81fbda Core/Objects: Fix flags overflow for InvisibilityType because TOTAL_INVISIBILITY_TYPES (38) can't fit in 32 bits flag (#28343) 2022-10-07 16:08:20 +02:00