Commit Graph
1454 Commits
Author SHA1 Message Date
Shauren 923cbcf59f Core/Items: Ignore item charges for item effects types other than on use
(cherry picked from commit ea29c5d667926380f7a31f44f0cd07a5b18d9200)
2026-06-30 20:22:03 +02:00
CraftedRO a29519cd25 Core/Spells: Properly retrieve pet to dismiss for spells with SPELL_ATTR1_DISMISS_PET (#30928)
(cherry picked from commit 8d6e6c3f7c397639e3edb5bf86449c9f492c0ce8)
2026-06-23 11:13:48 +02:00
Shauren 26f1f94bb0 Core/Spells: Rewrite potion cooldown handling using spell category flags 2026-06-06 14:01:20 +02:00
Shauren b192dd047f Core/Spells: Fixed range checks for ON_NEXT_SWING spells broken in f02ac75007 2026-06-05 16:45:39 +02:00
Gildor 095a74d3f1 Core/Spells: Fixed possible use after free with deleted focusObject (#30062)
* Core/Spells: Fixed possible use after free with deleted focusObject

(cherry picked from commit 93ab97a37c769cfbc0c5d3aea44aee0e3cd877bc)
2026-06-01 21:37:08 +02:00
Shauren d2c627d3bc Core/Spells: Implement sending FailedBy in spell failure packets 2026-06-01 18:36:14 +02:00
Gildor 2f060b28ee Core/Spells: Don't return immune to reflected spells due to target aurastate (#30050)
(cherry picked from commit 8824889f53a9d11d5b943f844900e41456edddec)
2026-06-01 16:10:34 +02:00
Shauren 0c46a7b187 Core/Spells: Corrected SpellCastResult values sent on spell interrupts
(cherry picked from commit b1c15cbfe61884664ed7615a34ca77ad0db3d95c)
2026-06-01 16:10:34 +02:00
Shauren e40c7fbb38 Core/Spells: Restore sending SMSG_CAST_FAILED for spells in SPELL_STATE_PREPARING state (cast bar in progress) unintentionally removed in 63bc405faeb7afcf99de6f7531e4ea59065165f4
(cherry picked from commit 844efbfca84580f7b2bd700f40209515f2aaa959)
2026-06-01 16:10:34 +02:00
Shauren 3e2bde32b8 Core/Spells: Don't send SMSG_CAST_FAILED for interrupted spells after they were launched or channelling was started (this clears cooldown on client)
Closes #26077

(cherry picked from commit 63bc405faeb7afcf99de6f7531e4ea59065165f4)
2026-06-01 16:10:34 +02:00
Shauren 2bcf150968 Core/Spells: Removed early access_requirement checks for summon spells to prevent cross map inventory access (it is checked later by TeleportTo)
Closes #26877
Closes #29906

(cherry picked from commit 4a30ca00c7d9adc3ec46267ca267d36c46a3c88e)
2026-06-01 00:08:12 +02:00
Shauren 9c8203cbff Core/Spells: Fixed TargetB selectoin after d6ccdbea10a29091afc20471331f50260f65ac46
(cherry picked from commit eba78de1eeb824fec5fcdc50fc08196419605b7c)
2026-05-31 22:30:46 +02:00
Shauren 8744c5440e Core/Spells: SPELL_ATTR1_REQUIRE_ALL_TARGETS should require that each unique (targetA, targetB) pair has at least one target, not that each effect has a target
* Fixed Mind Flay on creatures immune to slow

(cherry picked from commit d6ccdbea10a29091afc20471331f50260f65ac46)
2026-05-31 22:22:32 +02:00
CraftedRO 3874396c6b Core/Spells: Fix Shadowform cooldown sometimes getting stuck (#29886)
Closes #18178

(cherry picked from commit 018e66bc914e3e39b01e15a51ad683a5e881d156)
2026-05-31 22:01:19 +02:00
Shauren 32d22a6513 Core/Spells: Improved spell explicit target fallback selection for unit targets when spell target comes from client
Client only looks at target type of first spell effect to determine what additional target info to send in packet outside of Spell.dbc Targets column

Closes #11566
Closes #29809

(cherry picked from commit 5d7ae76d6f2a0f6f6416ff754d2243f3aafcc7d5)
2026-05-30 18:28:18 +02:00
Mykhailo Redko 65b857eb27 Core/Spells: Immune a reflected spell if the original caster cannot be it's target. (#29645)
(cherry picked from commit 86551ba71669712cadf82f2dc1f0c5481f0fba1b)
2026-05-26 23:08:28 +02:00
Shauren 708710e109 Core/Spells: Corrected client control checks in spell packets
Closes #26510
Closes #27863

(cherry picked from commit 0a34290484f3e90a2a642986de682a8b0c7e3815)
2026-05-26 23:08:27 +02:00
Shauren 6324222cdb Core/Misc: Port some 3.3.5 cherry-pick refactors 2026-05-18 00:28:59 +02:00
Shauren 72dc4d9964 Core/Spells: Sync enum name with 3.3.5 branch 2026-05-11 20:31:03 +02:00
Shauren 7ac98ef88a Core/Spells: Implemented RadiusMin (targets must be between RadiusMin and RadiusMax) 2026-04-26 16:27:52 +02:00
Shauren f02ac75007 Core/Spells: Add SpellRange structure to replace std::pair<float, float> in spell range checks 2026-04-26 16:27:52 +02:00
Shauren 325509b6c7 Core/Random: Rename roll_chance_x functions to roll_chance 2026-04-10 00:09:44 +02:00
Shauren 77e549c0f4 Core/Spells: Fixed crashes happening when aura remove or proc script despawns a creature that is already despawning 2026-04-09 16:35:42 +02:00
Shauren 8225b5b71c Core/Spells: Change spell effect value type to double 2026-04-08 18:40:58 +02:00
Shauren 62a459d508 Core/Spells: Changed SpellEffectInfo::CalcBaseValue return type to double 2026-03-30 13:03:34 +02:00
Shauren db8552567d Core/Transmog: Update transmog system to 12.0 2026-03-21 13:41:42 +01:00
Shauren d23ea9773c Core/Spells: Fixed autoattack timer being reset by almost every spell cast 2026-03-03 10:33:05 +01:00
Shauren 1de6f59ffc Core/Spells: Fixed proc phase order for spells with no travel time (CAST now happens before FINISH as intended) 2026-02-28 14:45:12 +01:00
Shauren b0eef35616 Core/Spells: Move duplicated code for proc flag selection to separate function 2026-02-28 14:41:52 +01:00
Cristian Vintila 6da8e45580 Core/Spells: Set CAST_FLAG_EX_DONT_CONSUME_CHARGES for spells ignoring cds (#31686) 2026-02-27 14:02:21 +01:00
Shauren 4a3cb9c76b Core/Spells: Update CAST_FLAG_NO_GCD flag implementation 2026-02-23 23:21:55 +01:00
Shauren 76c292ae4a Core/Scripts: Expose Spell::GetUnitTargetIndexForEffect in scripts 2026-02-19 21:41:14 +01:00
Shauren 0b6d4eaf8e Core: Updated to 12.0.1 2026-02-12 20:49:32 +01:00
ModoX ee0c30a968 Core/Spells: Make sure that spells with overridden duration but default duration 0 are not flagged immune 2026-02-05 12:49:31 +01:00
Aqua Deus 714e4539b1 Core/Spells: Spells with attribute SPELL_ATTR2_IGNORE_LINE_OF_SIGHT can bypass SPELL_AURA_INTERFERE_ENEMY_TARGETING and SPELL_AURA_INTERFERE_ALL_TARGETING (#31548) 2026-02-01 11:36:32 +01:00
Shauren b0a596908d Core: Updated to 12.0.0 2026-01-29 00:22:24 +01:00
Shauren df670cf0ac Core/Spells: Define and implement new SpellCastFlagsEx - CAST_FLAG_EX_SUPPRESS_CASTER_ANIM that causes spell caster animations to be skipped 2026-01-10 22:40:28 +01:00
Shauren 00542ca800 Core/Scripts: Remove Optional<> wrapper from all Scripting::v2::ActionResultSetter uses 2026-01-09 00:37:42 +01:00
Shauren e8a702930e Core/Spells: Fixed channeled spells not triggering procs with PROC_FLAG_CAST_ENDED and PROC_ATTR_REQ_SPELLMOD 2026-01-04 00:27:12 +01:00
Shauren a80e33a674 Core/Spells: Move periodic tick count calculation from SpellInfo to SpellEffectInfo 2026-01-03 12:18:49 +01:00
Shauren 6cff1622e5 Core/Spells: Only check spell immunity against effects that will apply to each target 2025-12-25 16:48:32 +01:00
Shauren 7c5edfcdda Core/Position: Change Position<->G3D::Vector3 conversion functions to be lambdas 2025-11-09 21:30:32 +01:00
Shauren 03e2aa6737 Core/Vmaps: Rename VMapManager2 to VMapManager 2025-10-25 00:55:34 +02:00
Shauren 273e7fc45b Core/Spells: Remove stealth auras by dispel type when handling SPELL_ATTR1_FAILURE_BREAKS_STEALTH instead of picking a random interrupt flag that stealth has 2025-10-18 11:35:38 +02:00
Shauren a8f01e07d1 Core/Entities: Merge duplicate functions calculating relative positions - remove CalculatePassengerPosition/CalculatePassengerOffset from TransportBase class 2025-10-14 13:11:41 +02:00
Aqua Deus 5fad0fb43a Core/Auras: Implement SPELL_AURA_INTERFERE_ALL_TARGETING (SPELL_AURA_486) (#31286) 2025-09-23 21:50:21 +02:00
Shauren 4c66c09e38 Core/Spells: Allow spell scripts to access other scripts attached to a spell 2025-09-19 00:35:14 +02:00
Shauren aa85b27869 Core/Spells: Don't set CAST_FLAG_PENDING for spells that have OriginalCastID set but no triggered flag
* Fixes cast bar and model animations
2025-09-10 19:07:50 +02:00
Shauren 03d072da46 Core/Spells: Simplify SortTargetsWithPriorityRules
* Remove manul weight assignment
* Removed std::vector alloc
2025-09-06 13:19:38 +02:00
Telegrill 2e3f3fda3f Core/Spells: Add a helper function to sort spell targets based on custom scripted sorting rules 2025-09-06 13:19:38 +02:00