Commit Graph

1227 Commits

Author SHA1 Message Date
Aqua Deus
26cb7fc600 Core/Auras: Implement PROC_FLAG_2_SUCCESSFUL_DISPEL (#30953)
(cherry picked from commit 27c17eb59e)
2025-05-26 20:49:52 +02:00
Shauren
fcf08011bb Core/Spells: Start spells triggered by SPELL_EFFECT_FORCE_CAST_2 without any trigger flags
(cherry picked from commit 0fd418eb74)

# Conflicts:
#	src/server/game/Spells/SpellEffects.cpp
2025-05-11 11:42:45 +02:00
Shauren
cc1c3169c1 Core/Spells: Remove triggering spell link from SPELL_EFFECT_FORCE_CAST
(cherry picked from commit e580d39b4f)
2025-05-11 11:40:52 +02:00
Shauren
612f1b8673 Core/Spells: Handle SPELL_EFFECT_FORCE_CAST on spell launch instead of hit
(cherry picked from commit 38d5f0d292)
2025-05-11 11:40:48 +02:00
Shauren
f48a519c64 Core/Spells: Fire OnEffectSuccessfulDispel for SPELL_EFFECT_DISPEL_MECHANIC
(cherry picked from commit 9f401946d3)
2025-05-11 11:40:44 +02:00
Shauren
ee79dd6d5d 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

(cherry picked from commit 2e79d3524f)
2025-05-11 11:40:37 +02:00
Ovahlord
b8522edf8a Core/Items: restore item random enchantments 2025-04-15 19:58:54 +02:00
Shauren
1e284365d5 Core/Spells: Removed dead code and definitions
(cherry picked from commit f94472572a)
2025-04-06 19:40:45 +02:00
Shauren
6924fd0dc6 Core/Spells: Skip handling apply aura spell effects if aura was removed earlier in script by PreventHitAura
(cherry picked from commit adb63648f1)
2025-02-18 18:18:31 +01:00
Shauren
9f084cd749 Core/Spells: Refactor SpellHistory ModifyCoooldowns and ResetCooldowns callbacks to use CooldownEntry argument instead of internal iterator
(cherry picked from commit ace6342aea)

# Conflicts:
#	src/server/scripts/Spells/spell_dh.cpp
2025-02-01 05:36:35 +01:00
Shauren
3eb4ccc9a0 Core/Items: Fixed item spell charge slot indexing
Closes #30585

(cherry picked from commit c85d12fc3f)

# Conflicts:
#	src/server/game/Entities/Item/Item.h
#	src/server/game/Globals/ObjectMgr.cpp
2025-01-26 12:59:30 +01:00
Shauren
f156cbf593 Core/Spells: Add summoned DynamicObject to casters ChannelObjects if spell is channelled 2025-01-18 00:09:10 +01:00
Shauren
f02d30be65 Core/Spells: DynamicObject auras will now use the largest radius found in SPELL_EFFECT_PERSISTENT_AREA_AURA effects of the spell creating them
(cherry picked from commit 4bec94451f)
(cherry picked from commit 497cb7df49)
2025-01-13 19:31:20 +01:00
CraftedRO
7aac50c888 Core/Spells: Allow persistent area auras to apply all of their effects upon creation. (#30422)
This fixes the issue where the area auras do not instantly apply their effects.
Actually, they were only applying the last SPELL_EFFECT_PERSISTENT_AREA_AURA;
Flare and Frost Trap have 2 and 3 SPELL_EFFECT_PERSISTENT_AREA_AURA effects respectively, so only the last one would be applied.

Co-Authored-By: zana244 <50482785+zana244@users.noreply.github.com>
(cherry picked from commit b6bb35bb9a)
(cherry picked from commit d8636d4cc6)
2025-01-13 19:31:15 +01:00
Shauren
b6b985a822 Core/Spells: Replace MAX_SPELL_EFFECTS loop limits with correct upper bound depending on how many effects the spell has
(cherry picked from commit 561b122364)

# Conflicts:
#	src/server/game/Spells/Spell.cpp
2025-01-09 20:56:16 +01:00
Shauren
08eb6312f2 Core/Auras: Fixed sending amounts for effects that need it, aren't first and don't have SPELL_ATTR8_AURA_POINTS_ON_CLIENT
(cherry picked from commit 0a1b81043e)
2025-01-09 20:54:38 +01:00
Shauren
990e4b0518 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
(cherry picked from commit 54a83b4b68)

# Conflicts:
#	src/server/game/Entities/Item/enuminfo_ItemDefines.cpp
#	src/server/game/Spells/Spell.cpp
2025-01-01 21:05:59 +01:00
Shauren
cb29e42e3a Core/Scripts: Added SpellEffectInfo argument to CalcDamage and CalcHealing spell script hooks
(cherry picked from commit 884662a75a)

# Conflicts:
#	src/server/scripts/Shadowlands/Torghast/spell_torghast.cpp
#	src/server/scripts/Spells/spell_azerite.cpp
#	src/server/scripts/Spells/spell_evoker.cpp
#	src/server/scripts/Spells/spell_priest.cpp
#	src/server/scripts/Spells/spell_rogue.cpp
#	src/server/scripts/Spells/spell_warlock.cpp
2024-12-21 17:41:47 +01:00
Ovahlord
2087f75871 Core/Player: fixed logic for determining fully depleted runes - these are runes at max cooldown that hasn't started recovering yet 2024-12-20 18:22:08 +01:00
Ovahlord
d353eb35a6 Core/Spells: corrected SPELL_EFFECT_ACTIVATE_RUNE behavior for Classic
* this fixes blood rune activation
2024-12-20 17:16:32 +01:00
Shauren
f8c02aa69b Core/Spells: Implemented SPELL_EFFECT_UPDATE_INTERACTIONS
(cherry picked from commit ad06dcaaec)
2024-12-20 15:37:36 +01:00
Shauren
4566661d75 Core/Spells: Fixed PROC_HIT_DISPEL and PROC_HIT_INTERRUPT on procs using PROC_SPELL_PHASE_HIT phase 2024-12-16 16:43:23 +01:00
Shauren
e14bc92037 Core/GameObjects: Fixed gameobject spell casts failing when triggered by SPELL_EFFECT_OPEN_LOCK
(cherry picked from commit 3177c410e4)
2024-12-06 21:19:48 +01:00
Meji
98d1505e33 Core/Summons: Handle summons using SummonProperties.Control type 5 as vehicles (#30391)
(cherry picked from commit 23bb1a56b7)
2024-11-10 20:25:33 +01:00
Ovahlord
7704c0cc5a Core/Misc: dropped unused Traits implementation 2024-09-01 20:49:45 +02:00
Ovahlord
926fda01d8 Core/Quests: fixed max level quest money rewards and calculate them during runtime instead of using dumped DB values
* this fixes an exploit that was allowing players that have capped their level via npc to obtain higher max level money rewards if the quest info came from a sniff that was done with a max level character
2024-08-22 16:28:26 +02:00
Meji
bd2212322b Core/SAI: Implemented new action SMART_ACTION_COMPLETE_QUEST (#30048)
(cherry picked from commit 3429871a07)
2024-08-17 14:05:40 +02:00
Ovahlord
ec0c06201e Core/Quests: kill QUEST_OBJECTIVE_FLAG_2_QUEST_BOUND_ITEM implementation and restore regular quest item loot behavior
closes #30145
2024-08-04 19:43:23 +02:00
Ovahlord
2401e32c55 Core/Misc: update Combo Points handling to Cataclysm 2024-07-31 06:05:41 +02:00
Ovahlord
d8a9f7bd25 Core/Players: updated glyph handling for Cataclysm 2024-07-28 01:32:42 +02:00
Ovahlord
03b6898518 Core/Player: initial work on implementing talents for Cataclysm
- use a new structure to hold talent group data which will eventually replace the old master branch implementation
- added support for unlocking dual talent specialization and switching specs
- added basic support for learning and resetting talents
2024-07-27 11:03:38 +02:00
Shauren
a33222a36f Core/Spells: Added missing SummonPropertiesFlags::UseDemonTimeout handling to some summon cases
(cherry picked from commit ceffc2cb20)
2024-07-14 19:03:03 +02:00
Ovahlord
20a8c46a72 Core/Players: turn rune cooldowns into floats and change their cooldown calculation to get closer to what the other power types do 2024-07-12 02:58:00 +02:00
Ovahlord
dbf2a4288e Core/Spells: implemented SPELL_EFFECT_ACTIVATE_RUNE 2024-07-11 17:30:56 +02:00
Shauren
a0d6548be3 Core/Spells: Implemented SPELL_ATTR9_JUMPCHARGE__NO_FACING_CONTROL
(cherry picked from commit 486641063e)
2024-07-05 04:42:37 +02:00
Shauren
1d2da6e589 Core/Movement: Defined and implemented new spline flag - JumpOrientationFixed
(cherry picked from commit bd9fb4a563)
2024-07-05 04:42:27 +02:00
Shauren
db35ae6f43 Core/Spells: Implemented new trigger flag to cause spells to be instant without also causing other behavior of TRIGGERED_CAST_DIRECTLY (skipping SMSG_SPELL_START, skipping starting GCD)
(cherry picked from commit a885a1fc3c)

# Conflicts:
#	src/server/scripts/Spells/spell_priest.cpp
2024-06-28 18:39:31 +02:00
Ovahlord
dc67de6b1b Core/Items: dropped artifact weapon implementation 2024-06-25 18:08:28 +02:00
Shauren
7e1fc9c4ea Core/Spells: Implemented SPELL_ATTR9_FACE_UNIT_TARGET_UPON_COMPLETION_OF_JUMP_CHARGE
(cherry picked from commit 5cb4536bd0)
2024-06-23 23:52:13 +02:00
Shauren
bab83b91d9 Core/Movement: Allow setting position or object facing targets for jump movement
(cherry picked from commit ac73edc268)

# Conflicts:
#	src/server/scripts/Kalimdor/RagefireChasm/boss_lava_guard_gordoth.cpp
2024-06-23 23:48:49 +02:00
Shauren
7d5a7470ae Core/Spells: Implemented SPELL_ATTR9_ITEM_CAST_GRANTS_SKILL_GAIN
(cherry picked from commit 00efee9ca1)
2024-06-20 01:19:55 +02:00
Shauren
f7992964c3 Core/Spells: Rename more SpellAttr9
(cherry picked from commit 56a027131a)
2024-06-20 01:19:46 +02:00
Ovahlord
9687039d1c Core/Quests: implement quest level scaling 2024-06-14 03:38:26 +02:00
Shauren
27559ffb98 Core/Spells: Prevent creatures from being able to cast all their spells while moving
Closes #26137

(cherry picked from commit f80f931e2b)
2024-05-28 17:03:38 +02:00
Antonio Martín Berti
3e6b11c0fd Core/Spells: Implemented SPELL_EFFECT_REPUTATION_2 (184) (#29971)
(cherry picked from commit cdffb0565e)
2024-05-28 16:57:43 +02:00
Jeremy
d0d5d309bb Core/Battlegrounds: Move to scripts (#29799)
* Introduce new BattlegroundScript class for map/bg specific scripts
* Remove all sub, zone specific, battleground classes except Arena
* Move all bg zone scripts to new BattlegroundScripts class in script folder
* Remove ZoneScript from Battleground class
* Remove some unused hooks from Battleground

(cherry picked from commit be11f42a16)
2024-03-28 20:38:55 +01:00
Ovahlord
a581f97109 Core/Spells: named some of the new added spell effects 2024-03-14 02:02:34 +01:00
Ovahlord
45afe91cd4 Core/Spells: updated spell effects enum 2024-03-14 00:48:44 +01:00
MaxtorCoder
cfc9cc9ec2 Core/PacketIO: Update to 4.4.0.53627 (#29805)
* Core/PacketIO: Update to 4.4.0.53627

* Core/IO: Remove duplicate declaration of PetSpellDataID

* Core/IO: Assign STATUS_UNHANDLED to some azerite packets
2024-03-13 21:16:18 +01:00
Ovahlord
e1b151f072 Core/Misc: removed a couple blank lines 2024-03-13 20:17:36 +01:00