Commit Graph

1314 Commits

Author SHA1 Message Date
Shauren
69317c2594 Core/Spells: Defined and implemented more spell effect attributes - AlwaysAoeLineOfSight, IsHarmful, PlayersOnly, EnforceLineOfSightToChainTargets 2023-09-28 00:45:31 +02:00
Shauren
41a20b1e40 Core/Achievements: Fixed achievement criteria StartEvent and FailEvent
* Criteria using StartEvent cannot be updated without that event triggering first (not only for timed achievements)
* Implemented most StartEvent and FailEvent types
* Fixed saving criteria removed by RemoveCriteriaProgress
2023-09-25 00:53:56 +02:00
Shauren
8efeb202a5 Core: Update to 10.1.7 2023-09-07 01:10:07 +02:00
Shauren
ca16d0800c Core/Spells: Merge TRIGGERED_IGNORE_AURA_INTERRUPT_FLAGS functionality into TRIGGERED_IGNORE_CAST_IN_PROGRESS as they are always used together (and missing one of them in scripts is a common enough mistake)
* Also fixes Ray of Frost being interrupted by casting Shimmer
2023-08-28 10:12:09 +02:00
Seyden
42a6e0eb1a Core/Spells: Implement sqrt based aoe damage diminishing (#29192)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2023-08-22 00:02:37 +02:00
Shauren
d4d28d27f8 Core/Spells: Rewrite SelectRandomInjuredTargets to make extending it with additional requirements easier and allow it to prioritize group members 2023-08-19 00:59:06 +02:00
Shauren
98007f859b Core/Misc: Turn ChrSpecialization into enum class 2023-08-07 00:05:36 +02:00
Shauren
a3a31a9a6f Core/Spells: Fixed spells with SPELL_ATTR12_START_COOLDOWN_ON_CAST_START failing to cast because of their own cooldown 2023-08-06 13:53:02 +02:00
Shauren
17a77d6630 Core/Spells: Fix copypaste mistake (doesn't really change anything) 2023-08-04 10:52:55 +02:00
Shauren
9cdf3530f4 Core/Scripts: Added damage and healing calculation hook to spell and aura scripts allowing to override base damage amount, flat value mod and percent value mod separately 2023-08-01 21:31:06 +02:00
Shauren
197d4369c8 Core/Spells: Removed old combo point code leftovers 2023-07-31 11:55:00 +02:00
Shauren
9e68fd1458 Core/Spells: Fixed spell duration scaling with combo points 2023-07-31 00:11:05 +02:00
Shauren
228c56f3c5 Scripts/Spells: Modernize spell script internals a bit - this makes Prepare macros unneccessary 2023-07-24 00:27:25 +02:00
Meji
889e88ab80 Core/Spells: Fixed target radius logic in spell effects for TargetB (#29158) 2023-07-20 10:10:18 +02:00
Shauren
0cea730fa2 Core: Update to 10.1.5 2023-07-12 16:29:00 +02:00
Shauren
263d1f4fe5 Core/Spells: Fixed crash in spells with charge effects that also apply another effect on the caster
Closes #28983
2023-07-01 00:51:15 +02:00
Shauren
29eac37a16 Core/Spells: Fully prevent infinite proc loops and add logging to detect most spells that could possibly trigger this behavior at startup
Closes #28865
2023-06-29 11:39:02 +02:00
Shauren
bacfbec251 Core/Spells: Allow filtering procs in FINISH phase by SpellTypeMask 2023-06-29 00:06:49 +02:00
Jeremy
815e158a3e Core/Creatures: Implement CREATURE_STATIC_FLAG_4_IGNORE_LOS_WHEN_CASTING_ON_ME (#29029) 2023-06-28 19:01:14 +02:00
ModoX
80e22230c3 Core/Spells: Implemented target type TARGET_DEST_DEST_TARGET_TOWARDS_CASTER (#29085) 2023-06-24 01:16:00 +02:00
Shauren
afe1b1eeed Core/Spells: Added debuginfo to SpellEvent assertions 2023-06-19 00:44:06 +02:00
Shauren
a97cdfc8f5 nopch build fix 2023-06-17 00:05:25 +02:00
Shauren
cd7c5eff49 Core/Spells: Validate known heirlooms for SPELL_EFFECT_CREATE_HEIRLOOM_ITEM 2023-06-16 23:54:29 +02:00
Shauren
c484530b0c Core/Spells: Added enum flag operators to TriggerCastFlags to prevent accidentally using CastSpellExtraArgs(bool) constructor when CastSpellExtraArgs(TriggerCastFlags) was intended 2023-06-09 00:33:35 +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
526b16fea4 Core/Objects: Unify GameObjectSearcher, UnitSearcher, CreatureSearcher and PlayerSearcher classes into one common implementation 2023-05-28 16:54:23 +02:00
Shauren
261eb201bf Core/Objects: Unify WorldObjectSearcher classes into one common implementation 2023-05-28 16:07:34 +02:00
Shauren
3790c1e3da Core/Spells: Implemented spell target type 142 2023-05-28 01:14:19 +02:00
Jeremy
f8f1c3b4f0 Core/Areas: Update AreaFlags from EnumeratedStings values (#29008) 2023-05-19 20:11:31 +02:00
Teleqraph
c7ff9a9083 Scripts/Spells: Implement Summon Sayaad (#28907)
Co-authored-by: ModoX <moardox@gmail.com>
2023-04-23 16:49:01 +02:00
Shauren
295c8f6326 Core/Spells: Fixed effects targeting the caster not hitting him immediately on spell launch if the spell targets a dest
* Also improve hit timing for charge spells
2023-04-21 19:05:38 +02:00
ModoX
a7256209cc Core/Spells: Readded accidently dropped line in 0750b7f845 2023-04-13 12:29:02 +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
ModoX
0750b7f845 Core/Creature: Implemented sparring with max health percent thresholds (#27198)
Co-authored-by: Ovah <dreadkiller@gmx.de>
2023-04-06 01:01:02 +02:00
Meji
229a7ac79d Core/Skinning: Update correct skinning skill according to creature expansion (#28861) 2023-03-30 17:35:58 +02:00
Meji
cc57c9dad5 Core/Creatures: Improved movement interruption while casting spells (#28845) 2023-03-24 12:27:01 +01:00
Shauren
9fe8ee3622 Core/Spells: Make CastSpellExtraArgs copy and movable 2023-02-28 00:22:18 +01:00
Shauren
a8bb1739e9 Core/Spells: Refactor Spell::finish to accept SpellCastResult argument instead of just a bool indicating success 2023-02-28 00:19:31 +01:00
Shauren
3400c5a52c Core/Spells: Updated silence flags for 9.0 and rename unit flag to its new meaning 2023-02-26 00:58:48 +01:00
Meji
03918978c1 Core/Players: Several currency fixes and improvements (#28676) 2023-01-29 17:42:23 +01:00
Shauren
badb55bfd9 Core/Spells: Added additional validation to loading spell_linked_spell to prevent infinite loops
Closes #28753
2023-01-15 13:30:17 +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
d8a4668c77 Core/Misc: Add missing Containers.h include where neccessary 2023-01-06 16:44:11 +01:00
Teleqraph
6515319b75 Core/Auras: Implemented SPELL_AURA_MOD_STUN_DISABLE_GRAVITY (#28511)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2022-12-30 01:16:29 +01:00
Shauren
0cc5ab8372 Core/Players: Implemented new talent system 2022-12-16 22:44:55 +01:00
Shauren
e98e1283ea Core: Updated to 10.0.2 2022-12-04 15:13:20 +01:00
Shauren
1011cb73c9 Core/GameObjects: Implemented gathering nodes (gameobject type 50) 2022-10-22 02:07:59 +02:00
Shauren
133334a902 Core/Loot: Implemented personal loot and tag sharing for non-boss loot 2022-10-17 23:11:46 +02:00
Shauren
9fb4c1ca02 Core/Gossip: Implemented GossipOptionNpc.AzeriteRespec 2022-10-14 20:34:58 +02:00
Shauren
9b924522d0 Core/Instances: Delete InstanceSaveMgr and replace most of its uses with new InstanceLockMgr 2022-10-04 00:19:38 +02:00