Commit Graph

1378 Commits

Author SHA1 Message Date
Shauren eaf412c1bb Core/Spells: Split TRIGGERED_IGNORE_POWER_AND_REAGENT_COST into separate POWER and REAGENT flags
(cherry picked from commit 151a50d2aa)

# Conflicts:
#	src/server/game/Spells/Spell.cpp
#	src/server/scripts/Spells/spell_druid.cpp
#	src/server/scripts/Spells/spell_priest.cpp
#	src/server/scripts/Spells/spell_warlock.cpp
2025-01-01 21:00:25 +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
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 a28bdcba23 Core/Spells: Fixed item level requirements for enchanting spells
Closes #30482

(cherry picked from commit 243314806f)

# Conflicts:
#	src/server/game/Spells/Spell.cpp
#	src/server/game/Spells/SpellInfo.cpp
#	src/server/shared/SharedDefines.h
#	src/server/shared/enuminfo_SharedDefines.cpp
(cherry picked from commit 2e4ada2d3d)
2024-12-06 21:19:57 +01:00
Ovahlord 9954a294be Core/Spells: removed an ancient code remnant which involved ammo requirements for thrown weapons 2024-11-21 23:10:32 +01:00
Shauren e5f8dd0d27 Core/Spells: Fix copypaste mistake in CastSpellExtraArgs::SetTriggeringSpell
(cherry picked from commit 4a574c0ce1)
2024-09-13 19:31:27 +02:00
Shauren 5a495d8e02 Core/Spells: Refactor CastSpellExtraArgs
* Allow C++20 designated initializers
* Allow precise float values for SPELLVALUE_RADIUS_MOD, SPELLVALUE_CRIT_CHANCE and SPELLVALUE_DURATION_PCT

(cherry picked from commit 975e7cc072)
2024-09-13 19:30:56 +02:00
Shauren e0ac52a75a Core/Spells: Remove setting OriginalCastId from CastSpellExtraArgs::SetTriggeringAura
(cherry picked from commit f604661a40)

# Conflicts:
#	src/server/game/Spells/Spell.cpp
2024-09-12 21:46:00 +02:00
Shauren 2592a08df6 Core/Spells: Fixed spell target selection not being shared by multiple effects when there are targeting scripts that have the same script function
(cherry picked from commit b1d8061a0f)
2024-09-03 19:55:16 +02:00
Ovahlord 7704c0cc5a Core/Misc: dropped unused Traits implementation 2024-09-01 20:49:45 +02:00
Shauren 0c98004896 Core/Players: Use PlayerData::VirtualPlayerRealm instead of global GetVirtualRealmAddress() where possible
(cherry picked from commit 88fea990ff)
2024-08-18 20:30:26 +02:00
Shauren cb8f38120a Core/PacketIO: Added example uses of new packet reading/writing utilities
(cherry picked from commit 6f67ed7fd3)

# Conflicts:
#	src/server/game/Server/Packets/CharacterPackets.cpp
#	src/server/game/Server/Packets/GarrisonPackets.cpp
#	src/server/game/Server/Packets/ItemPackets.cpp
#	src/server/game/Server/Packets/NPCPackets.h
#	src/server/game/Server/Packets/QuestPackets.cpp
#	src/server/game/Server/Packets/SystemPackets.cpp
2024-07-31 17:02:16 +02:00
Ovahlord 947fd260a8 Core/Spells: treat combo points consumption similar to regular power to allow spending and gaining combo points within the same update tick 2024-07-31 13:40:01 +02:00
Ovahlord 72e9036481 Core/Auras: updated aura duration bonus from combo points for Cataclysm 2024-07-31 12:40:30 +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
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 fe97a86415 Core/Player: update rune regeneration and consumption for Cataclysm Classic
* the regeneration bonus from haste is tied to the HasteRegen update field and must be implemented first before we can handle it
2024-07-11 17:14:22 +02:00
Shauren 071ddfa162 Core/Spells: Remove spell range increase when caster or target move backwards
(cherry picked from commit f19e1a2716)
2024-07-05 04:43:28 +02:00
Shauren 1622a5e7be Core/Spells: Implemented SPELL_ATTR9_FORCE_CORPSE_TARGET
(cherry picked from commit af39104798)
2024-07-05 04:43:08 +02:00
Shauren 315393f1ca Core/Spells: Implemented SPELL_ATTR9_ALLOW_CAST_WHILE_CHANNELING
(cherry picked from commit 3365e6a4b8)
2024-06-28 18:40:44 +02:00
Shauren ed7a335ec0 Core/Spells: Exclude spells cast from client from being treated as triggered if they have any trigger flags set (possible with override spells auras)
(cherry picked from commit 816369318f)
2024-06-28 18:39:36 +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 f16c2af510 Core/Spells: Rename more SpellAttr9 to official names
(cherry picked from commit 8963ea8e4c)
2024-06-24 20:16:36 +02:00
Shauren 59c1beeb4c Core/Spells: Removed MECHANIC_IMMUNE_SHIELD + MECHANIC_BANISH special case check in Spell::CheckCasterAuras and named possibly related spell attribute
(cherry picked from commit 721103c1c9)
2024-06-23 23:48:30 +02:00
Shauren f52d9b9916 Core/Spells: Fixed implementation of SPELL_ATTR1_IMMUNITY_TO_HOSTILE_AND_FRIENDLY_EFFECTS and removed banish special cases that were neccessary because that attribute wasn't correctly supported
(cherry picked from commit c968dedfee)
2024-06-20 01:22:04 +02:00
Shauren 2cfccad14f Core/Spells: Rename more SpellAttr9 to official names
(cherry picked from commit 9d4047a3be)
2024-06-20 01:20:14 +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 d0c37cba22 Core/Spells: Implemented SPELL_ATTR9_IGNORE_TOTEM_REQUIREMENTS_FOR_CASTING - fixes some totems requiring legacy items in inventory
(cherry picked from commit 8142ab20b7)
2024-06-20 01:19:51 +02:00
Shauren f7992964c3 Core/Spells: Rename more SpellAttr9
(cherry picked from commit 56a027131a)
2024-06-20 01:19:46 +02:00
Shauren 0c0e451027 Core/Spells: Implemented SPELL_ATTR9_ONLY_WHEN_ILLEGALLY_MOUNTED
(cherry picked from commit 1f3af18e3a)
2024-06-20 01:19:33 +02:00
Meji baadaa550e Core/Spells: Fixed UnitData::ChannelObjects for channeled spells using dest targets (#30027)
(cherry picked from commit 453977cc6d)
2024-06-20 01:19:29 +02:00
Shauren 2c643fe7d0 Core/Spells: Implemented SPELL_ATTR9_FORCE_DEST_LOCATION
(cherry picked from commit 84c84b66d4)
2024-06-20 01:19:21 +02:00
Ovahlord 8d851e8576 Core/Spells: removed no longer used parameters from SpellEffectInfo::CalcValue and SpellEffectInfo::CalcBaseValue 2024-05-30 14:55:34 +02:00
Shauren e231bd010e Core/Spells: Fixed gcc 14 build
(cherry picked from commit 0fb81435bc)
2024-05-28 17:37:02 +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
Shauren 8b6df512bb Core/Spells: Fixed TARGET_UNIT_AREA_THREAT_LIST and TARGET_UNIT_AREA_TAP_LIST
(cherry picked from commit 66abcaff14)
2024-05-28 16:41:09 +02:00
Shauren 093546f22c Core/Scripts: Integrate new ActionResultSetter with movement generators and spells
(cherry picked from commit b265c49977)
2024-05-28 16:34:58 +02:00
Shauren 6472446440 Core/Misc: Use our new unique_trackable_ptr for various classes exposed to scripts (not actually used anywhere currently)
(cherry picked from commit 4779fa5048)
2024-03-25 20:21:24 +01:00
Shauren 97df861c52 Core/Auras: Update visible aura immediately during spell cast instead of waiting for next update tick
(cherry picked from commit 62dc916184)
2024-03-25 20:12:53 +01:00
Ovahlord 123d515c2e Core/Packets: fixed SMSG_SPELL_START and SMSG_SPELL_GO packet structures
* fixed a client crash caused by LevelUpInfo
2024-03-14 22:23:20 +01:00
Ovahlord 9daf5e66e0 Core/Packets: fixed structure of SpellCastVisual 2024-03-14 21:33:01 +01:00
Ovahlord 6d0be9624d Core/Units: restored UNIT_FLAG_SILENCED 2024-03-13 23:43:29 +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 d9ffc33724 Core/DataStores: duc-taped build 2024-03-10 02:39:59 +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