Commit Graph
1406 Commits
Author SHA1 Message Date
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
Shauren 5cf0c6c8bb Core: Updated to 11.2.0 2025-08-13 00:31:39 +02:00
Shauren 6daf472e81 Core/Spells: Fixed Revive Pet not being usable if pet corpse is still in world 2025-07-09 16:01:34 +02:00
Shauren 04d44bd3a0 Core/Spells: Fix group member classification in SelectRandomInjuredTargets 2025-07-08 16:40:25 +02:00
Shauren 5334467f49 Scripts: Fixed possible crashes caused by passing nullptr to Trinity::WorldObjectListSearcher constructor 2025-06-29 00:23:21 +02:00
Shauren 20ac55ffef Core/Spells: Fixed applying glyphs without exclusive category 2025-06-06 00:22:25 +02:00
Shauren 0fba073d1a Core/Spells: Don't set TARGET_FLAG_DEST_LOCATION for cone targets 2025-06-01 18:44:36 +02:00
Shauren a5ca817ff6 Core/Position: Remove Position implicit object slicing 2025-05-19 15:34:32 +02:00
Shauren fe788a5eeb Core/Misc: Silence some statis analysis false positive warnings 2025-05-19 14:41:23 +02:00
Shauren 616c5094e0 Core/Auras: Initialize aura spell visual from spell that created it instead of recalculating it 2025-05-17 19:42:02 +02:00
Shauren aefdd67ed1 Core/Spells: Expose spell channel duration to scripts 2025-05-17 19:39:10 +02:00
Shauren a63d404e7b Core/Spells: Implemented new SpellMisc field, MinDuration that controls minimum spell missile travel time 2025-05-06 19:22:21 +02:00
Shauren 0fd418eb74 Core/Spells: Start spells triggered by SPELL_EFFECT_FORCE_CAST_2 without any trigger flags 2025-04-30 13:14:22 +02:00
Shauren 2e79d3524f Core/Spells: Rename confusing SpellState enum values
* SPELL_STATE_CASTING -> SPELL_STATE_CHANNELING (was used for "channel in progress")
* SPELL_STATE_DELAYED -> SPELL_STATE_LAUNCHED
2025-04-20 15:41:58 +02:00
Shauren a97775ba26 Core/Spells: Fixed SPELL_EFFECT_CHARGE trigggering arrival effects too early 2025-04-11 11:26:32 +02:00
Shauren e57b0296d6 Core/Spells: Merge Spell::SetSpellValue overloads 2025-04-03 13:48:52 +02:00
Shauren 92773e207c Core/Auras: Fixed SPELL_ATTR13_PERIODIC_REFRESH_EXTENDS_DURATION 2025-03-23 18:01:40 +01:00
Shauren 4c605ce621 Core/Auras: Fixed SPELLVALUE_AURA_STACK adding incorrect number of stacks on aura refresh 2025-03-22 20:20:18 +01:00
Shauren 00223f3bee Core/Misc: Add a bunch of examples for 67418a1aee 2025-02-23 12:10:33 +01:00
Shauren 1959457421 Core/Spells: Implemented SpellEffectAttributes::DontFailSpellOnTargetingFailure 2025-02-16 20:38:52 +01:00
Shauren a5c547a383 Core/Spells: Don't fail spells SPELL_ATTR2_FAIL_ON_ALL_TARGETS_IMMUNE when target list is empty for one effect
Closes #30603
2025-01-27 00:24:12 +01:00
Shauren c85d12fc3f Core/Items: Fixed item spell charge slot indexing
Closes #30585
2025-01-25 22:48:10 +01:00
Shauren 380b1f8986 Core/Spells: Prevent even more cases of sending aura update packets for auras that aren't visible on client 2025-01-24 23:03:39 +01:00
Shauren e9470cd817 Core/Spells: Prevent sending aura update packets for auras that aren't visible on client
Closes #30633
2025-01-23 23:15:05 +01:00
Shauren 2a51a64549 Core/Spells: Reimplemented target type 106 as random point from points predefined in database
Closes #30116
2025-01-21 14:11:54 +01:00
Shauren 26376d89e1 Scripts/Spells: Use Spell::GetPowerTypeCostAmount where possible instead of iterating Spell::GetPowerCost 2025-01-20 22:49:52 +01:00
Shauren 0e36fd9360 Core/Spells: Replace SpellTargetPosition structure with WorldLocation 2025-01-20 19:27:44 +01:00
Shauren 56fb627c7d Core/Spells: Exclude TriggerCastFlags that can be set for non-triggered spells from being checked by Spell::IsTriggered 2025-01-20 00:32:04 +01:00
Ovahlord 4b7465aad8 Core/Spells: send rune cooldowns even after miss to match sniff data
(cherry picked from commit 7d5e794fd368a95d838b6ff33250460e6a6a634c)
2025-01-12 19:10:31 +01:00
Ovahlord 1dc2e8fdc5 Core/Spells: corrected refunding runes - they don't get put on a cooldown and don't send cooldowns for spells which had their runes refunded
(cherry picked from commit dbe2f1ee7ef90db0bdd60b29126f8a689a9e3548)
2025-01-12 19:10:19 +01:00
Shauren 76ab2007c0 Core/Spells: Don't grant runic power when death knight abilities that do it using negative power cost miss and the spell has SPELL_ATTR1_DISCOUNT_POWER_ON_MISS 2025-01-12 00:24:45 +01:00
Ovahlord d9c2720393 Core/Spells: fixed power check for runes when casting spells - these have their own check and don't require the default one
(cherry picked from commit 7f29956937b807c371ee3f3057d96f7601b4bc19)
2025-01-11 21:43:31 +01:00
Shauren 1e3b8d1721 Core/Spells: Fixed crashes with spells using SPELL_EFFECT_ENCHANT_ITEM/SPELL_EFFECT_ENCHANT_ITEM_PRISMATIC that are not cast by an item
Closes #28664
2025-01-10 23:47:57 +01:00
Shauren 84b0eca447 Core/Auras: Use UnitListSearcher instead of WorldObjectListSearcher when searching for area aura targets 2025-01-09 21:08:00 +01:00
Shauren 561b122364 Core/Spells: Replace MAX_SPELL_EFFECTS loop limits with correct upper bound depending on how many effects the spell has 2025-01-09 17:48:41 +01:00
Shauren 97f58a59f1 Core/Auras: Make iteration over Aura::GetAuraEffects safe by automatically skipping nullptr elements 2025-01-09 13:23:48 +01:00
Shauren 54a83b4b68 Core/Spells: Don't ignore power costs and reagents for spells triggered by SPELL_EFFECT_TRIGGER_SPELL, SPELL_EFFECT_TRIGGER_MISSILE, SPELL_EFFECT_FORCE_CAST, SPELL_AURA_PERIODIC_TRIGGER_SPELL, SPELL_AURA_PROC_TRIGGER_SPELL and fixed implementation of SPELL_ATTR6_DO_NOT_CONSUME_RESOURCES 2025-01-01 19:37:48 +01:00
Shauren 151a50d2aa Core/Spells: Split TRIGGERED_IGNORE_POWER_AND_REAGENT_COST into separate POWER and REAGENT flags 2024-12-31 20:14:01 +01:00
Shauren 884662a75a Core/Scripts: Added SpellEffectInfo argument to CalcDamage and CalcHealing spell script hooks 2024-12-21 00:40:08 +01:00
Shauren 0706a114bb Core/Spells: Fixed PROC_HIT_DISPEL and PROC_HIT_INTERRUPT on procs using PROC_SPELL_PHASE_HIT phase 2024-12-14 18:55:25 +01:00
Shauren 2e4ada2d3d Core/Spells: Fixed item level requirements for enchanting spells
Closes #30482

(cherry picked from commit 243314806ff10d9cd4a7595cb48a7bb5878058d6)

# Conflicts:
#	src/server/game/Spells/Spell.cpp
#	src/server/game/Spells/SpellInfo.cpp
#	src/server/shared/SharedDefines.h
#	src/server/shared/enuminfo_SharedDefines.cpp
2024-12-05 14:13:07 +01:00
Shauren 4e551741cf Core/Misc: Fix some GCC warnings 2024-11-12 16:39:24 +01:00
Shauren 3238175a62 Core/Items: Implemented ITEM_BONUS_DISENCHANT_LOOT_ID 2024-09-24 14:40:23 +02:00
Shauren 4a574c0ce1 Core/Spells: Fix copypaste mistake in CastSpellExtraArgs::SetTriggeringSpell 2024-09-13 16:33:48 +02:00
Shauren 975e7cc072 Core/Spells: Refactor CastSpellExtraArgs
* Allow C++20 designated initializers
* Allow precise float values for SPELLVALUE_RADIUS_MOD, SPELLVALUE_CRIT_CHANCE and SPELLVALUE_DURATION_PCT
2024-09-12 21:57:16 +02:00
Shauren f604661a40 Core/Spells: Remove setting OriginalCastId from CastSpellExtraArgs::SetTriggeringAura 2024-09-08 21:59:32 +02:00
Shauren b1d8061a0f Core/Spells: Fixed spell target selection not being shared by multiple effects when there are targeting scripts that have the same script function 2024-09-02 10:40:50 +02:00
Shauren 2c06e7fcda Core/Spells: Implemented SpellAuraInterruptFlags2::ReleaseEmpower 2024-08-19 12:30:37 +02:00
Shauren 88fea990ff Core/Players: Use PlayerData::VirtualPlayerRealm instead of global GetVirtualRealmAddress() where possible 2024-08-18 10:58:34 +02:00