Commit Graph

1345 Commits

Author SHA1 Message Date
Shauren 8142ab20b7 Core/Spells: Implemented SPELL_ATTR9_IGNORE_TOTEM_REQUIREMENTS_FOR_CASTING - fixes some totems requiring legacy items in inventory 2024-06-11 20:12:24 +02:00
Shauren 56a027131a Core/Spells: Rename more SpellAttr9 2024-06-11 11:05:40 +02:00
Shauren 1f3af18e3a Core/Spells: Implemented SPELL_ATTR9_ONLY_WHEN_ILLEGALLY_MOUNTED 2024-06-11 00:55:22 +02:00
Meji 453977cc6d Core/Spells: Fixed UnitData::ChannelObjects for channeled spells using dest targets (#30027) 2024-06-10 22:46:26 +02:00
Shauren 84c84b66d4 Core/Spells: Implemented SPELL_ATTR9_FORCE_DEST_LOCATION 2024-06-10 00:13:57 +02:00
Shauren 0fb81435bc Core/Spells: Fixed gcc 14 build 2024-05-23 22:32:15 +02:00
Shauren f80f931e2b Core/Spells: Prevent creatures from being able to cast all their spells while moving
Closes #26137
2024-05-18 11:50:00 +02:00
Shauren 6f9e359701 Core/Items: Implemented reagent bag 2024-05-13 00:30:31 +02:00
Shauren 240b7e58d8 Core/Spells: Refund power cost when cancelling empower spells 2024-05-04 13:06:17 +02:00
Shauren a39d0db9ec Core/Spells: Implemented evoker empower spell mechanic 2024-05-01 22:26:53 +02:00
Shauren 66abcaff14 Core/Spells: Fixed TARGET_UNIT_AREA_THREAT_LIST and TARGET_UNIT_AREA_TAP_LIST 2024-04-11 19:59:43 +02:00
Shauren b265c49977 Core/Scripts: Integrate new ActionResultSetter with movement generators and spells 2024-04-06 20:50:59 +02:00
Shauren 4779fa5048 Core/Misc: Use our new unique_trackable_ptr for various classes exposed to scripts (not actually used anywhere currently) 2024-03-13 18:51:29 +01:00
Shauren 62dc916184 Core/Auras: Update visible aura immediately during spell cast instead of waiting for next update tick 2024-03-10 00:34:23 +01:00
Shauren 45ee989c70 Core/vmaps: Removed vmap lookup functions duplicating functionality of each other 2024-03-07 00:23:52 +01:00
Shauren 0139ec41bb Core/Creatures: Allow toggling CREATURE_STATIC_FLAG_4_TREAT_AS_RAID_UNIT_FOR_HELPFUL_SPELLS 2024-02-29 18:09:10 +01:00
Shauren 9ecb93f34d Core/Spells: Don't modify item charges in all slots on a single item spell cast 2024-02-26 14:39:16 +01:00
Shauren 877ae5b47d Core/Spells: Implemented SPELL_ATTR8_CAN_HIT_AOE_UNTARGETABLE 2024-02-19 21:05:03 +01:00
Shauren ed0b621d15 Core/Auras: Allow SPELL_AURA_MECHANIC_IMMUNITY_MASK to apply aoe/chain targeting immunity 2024-02-13 00:46:42 +01:00
Shauren e88a88476c Core/Spells: Fixed duplicate SMSG_SPELL_EXECUTE_LOG being sent if there are effects handled on spell launch (such as summoning) 2024-02-12 18:45:29 +01:00
Shauren f70a5817e1 Core/Creatures: Move immunities to separate table and implemented setting immunties to dispel, spell effects, aura types, aoe and chain targeting 2024-01-30 21:29:55 +01:00
Ovahlord ea093fef27 Core/Units: moved CharmInfo class and its definitions into a own file (#29583) 2024-01-16 18:43:32 +01:00
Shauren c5f7e6cbd7 Core/Spells: Kill incorrect attribute implementation
(cherry picked from commit 8b183ddac3)
2024-01-14 00:06:36 +01:00
Shauren 0b5406dd88 Core/Conditions: Refactor ConditionMgr internals to get rid of separate containers for some condition source types 2024-01-11 20:56:24 +01:00
Meji 87f3ab11d3 Core/Spells: Fixed target radius calculation for TARGET_DEST_*_RANDOM (#29479) 2023-12-08 01:54:48 +01:00
ModoX 2e4eecf96c Core/Spell: Allow creatures with sparring active to damage themselves 2023-11-10 21:48:02 +01:00
Shauren e9b0d347a4 Core/Spells: Store BasePoints as float in SpellEffectInfo 2023-11-03 10:38:43 +01:00
Shauren 9894f6b802 Core/Random: Changed random functions returning doubles to return floats
* They were all cast to float at use anyway
* Improves roll_chance_f performance (rand32() is now called internally by uniform_real_distribution once instead of twice)
2023-10-31 20:20:00 +01:00
Shauren 930a08fe03 Core/Spells: SpellAttr8 fixups - use creator instead of owner for SPELL_ATTR8_ONLY_TARGET_IF_SAME_CREATOR and removed cast time requirement for channelled spell predicted healing 2023-10-24 10:38:27 +02:00
Shauren dc9361fcc2 Core/Spells: Named and implemented most of SpellAttr8 2023-10-22 18:39:59 +02:00
Shauren 4e87bd7942 Core/Spells: Named and implemented most of SpellAttr7 2023-10-21 14:49:42 +02:00
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