Shauren
ca034f4dbf
Core/Auras: Convert most rules from Aura::CanBeSaved to a custom spell attribute
2023-08-19 22:26:12 +02:00
Ovahlord
941e3137cd
buildfix
2023-08-03 22:02:59 +02:00
Shauren
9480f79c2a
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-03 21:32:20 +02:00
Ovahlord
84c6ea27a6
Core/Spells: allow Aura::RefreshDuration and its spell script helper to roll over a remaining tick when specified
2023-02-20 18:15:47 +01:00
Ovahlord
ede0c3df77
Core/Auras: updated some aura flag names
2022-12-19 14:37:53 +01:00
Ovahlord
3a451a3519
Core/Spells: fixed Glyph of Fear and Glyph of Psychic Scream
...
closes #385
closes #217
2022-11-26 14:04:55 +01:00
Ovahlord
3d529f2d7d
Core/Spells: refactored duration and period calculations
...
* fixed sending hit targets in spell_go packet
2022-10-01 19:13:01 +02:00
Ovahlord
b6f8a68d61
Core/Spells: fixed duration clamping for haste based periodic auras and added support for rolling any tick over
...
* roll over remaining time until next tick over into a refreshed periodic aura's duration
* this behavior is now being used for stackable spells, all HoTs and DoTs
* fixed adding extra ticks when at certain tick thresholds
* corrected implementation of SPELL_ATTR8_HASTE_AFFECTS_DURATION
* implemented SPELL_ATTR8_MELEE_HASTE_AFFECTS_PERIODIC
2022-10-01 13:47:14 +02:00
Shauren
c3b52fd29f
Core/Auras: Improve aura interactions with immunities on spell effect level
...
* Effects that target is immune to will be suppressed instead of completely removed
2022-09-30 12:49:31 +02:00
Shauren
50235ffcbc
Core/Spells: Implemented SPELL_ATTR6_AURA_IS_WEAPON_PROC
2022-09-30 10:53:58 +02:00
Ovahlord
eb0a5b607c
buildfix
2022-09-30 10:49:43 +02:00
Shauren
818e73dd5f
Core/Spells: Implemented SPELL_ATTR5_AURA_UNIQUE_PER_CASTER
2022-09-30 02:15:18 +02:00
Shauren
75906f3d06
Core/Auras: Added support for SPELL_ATTR5_LIMIT_N limit to other number than just 1
2022-09-30 01:57:52 +02:00
Shauren
d1700ba5fa
Core/Spells: Rename SpellAttr5 to use official attribute names
...
* Implemented SPELL_ATTR8_HASTE_AFFECTS_DURATION
2022-09-30 01:30:14 +02:00
Shauren
a7dc339a6a
SHA-1: 8d16a79dea4c0100d36e13b068c42499a3a48154
...
* Core/Spells: Rename SpellAttr4 to use official attribute names
* Corrected implementation of SPELL_ATTR4_CLASS_TRIGGER_ONLY_ON_TARGET
* Implemented SPELL_ATTR4_NO_HELPFUL_THREAT
* Implemented SPELL_ATTR4_NO_PARTIAL_IMMUNITY
* Implemented SPELL_ATTR4_ALLOW_PROC_WHILE_SITTING
* Implemented SPELL_ATTR4_USE_FACING_FROM_SPELL
* Implemented SPELL_ATTR4_BOUNCY_CHAIN_MISSILES
* Implemented SPELL_ATTR4_AURA_NEVER_BOUNCES
* Implemented SPELL_ATTR4_AURA_BOUNCE_FAILS_SPELL
* Implemented SPELL_ATTR4_AURA_IS_BUFF
* Implemented SPELL_ATTR5_MELEE_CHAIN_TARGETING
* Implemented SpellEffectAttributes::ChainFromInitialTarget
2022-09-30 01:16:39 +02:00
Ovahlord
62b8db9f6e
Core/Spells: cleaned up SpellAuraEffects::SetAmount helper and restore original handing of sending amounts
2022-09-30 00:40:37 +02:00
Ovahlord
ef3632109d
Core/Spells: ported SpellModOp definitions from master branch
2022-09-17 11:56:54 +02:00
Shauren
946f928ee2
Core/Spells: Rename SpellAttr3 to use official attribute names
...
* Implemented SPELL_ATTR3_NO_AVOIDANCE
* Implemented SPELL_ATTR3_ONLY_PROC_OUTDOORS
* Implemented SPELL_ATTR3_ONLY_PROC_ON_CASTER
* Implemented SPELL_ATTR3_PVP_ENABLING
* Implemented SPELL_ATTR3_SUPPRESS_CASTER_PROCS
* Implemented SPELL_ATTR3_SUPPRESS_TARGET_PROCS
2022-09-13 15:40:25 +02:00
Shauren
ea4bc6c02a
Core/Spells: Rename SpellAttr2 to use official attribute names
...
* Corrected implementation of SPELL_ATTR1_ALLOW_WHILE_STEALTHED
* Implemented SPELL_ATTR2_RETAIN_ITEM_CAST
* Implemented SPELL_ATTR2_ALLOW_WHILE_INVISIBLE
* Implemented SPELL_ATTR0_PROC_FAILURE_BURNS_CHARGE
* Implemented SPELL_ATTR2_PROC_COOLDOWN_ON_FAILURE
* Implemented SPELL_ATTR2_NO_TARGET_PER_SECOND_COSTS
* Implemented SPELL_ATTR2_DO_NOT_REPORT_SPELL_FAILURE
* Implemented SPELL_ATTR1_REQUIRE_ALL_TARGETS
* Implemented SPELL_ATTR2_CHAIN_FROM_CASTER
* Implemented SPELL_ATTR2_NO_ACTIVE_PETS
* Implemented SPELL_ATTR2_ENCHANT_OWN_ITEM_ONLY
2022-09-13 14:36:32 +02:00
Ovahlord
e3e4b2cf16
Core/Spells: dropped old dot clipping implementation and restored TC period and duration calculations in preparation of re-implementing it
2022-09-12 09:15:35 +02:00
Ovahlord
77cf3ebc91
Core/Spells: removed another duplicate haste application for periodic auras
2022-09-12 09:15:32 +02:00
Ovahlord
6a71b6d053
Core/Units: consider summoned units with a creator guid also as party or raid member
...
the old logic was built on the false assumption that all units like totems have a ownerguid - they do not. They only have a creatorguid. Ownerguids (as the name implies) is only applied on units that the player is actively controlling. 3.3.5 has this implemented in a wrong way while 4.x does not.
*also fixed up more cherrypick mistakes while at it
2022-09-12 09:15:31 +02:00
Shauren
ca7d36873f
Core/Spells: Rename SpellAttr1 to use official attribute names
...
* Implemented SPELL_ATTR1_NO_SKILL_INCREASE, SPELL_ATTR1_AURA_STAYS_AFTER_COMBAT, SPELL_ATTR1_DISPEL_ALL_STACKS
2022-09-12 09:15:31 +02:00
Shauren
39b5168dbb
Core/Auras: Changed aura dot stacking rule to not ignore aura type of "existingAura"
2022-09-12 09:15:30 +02:00
Gildor
86121e9996
Core/Spells: Aura refresh improvements
2022-09-12 09:15:29 +02:00
PolarCookie
81e5943bd0
Core/Spell: SpellAura Redux ( #22794 )
...
* typo and correction
* spell aura no longer shared between targets
_spellAura isolated
* SPELL_AURA_CONTROL_VEHICLE is not strictly single target spell
Steam Tank Control and Wyrmrest Commander
units can reseat themselves again
* Rename 9999_99_99_99_world.sql to 2019_03_08_00_world.sql
2022-09-12 09:15:23 +02:00
Shauren
dc8bf301bb
Core/Auras: Fixed saving auras with same spell id but different item source
2022-09-12 09:15:21 +02:00
ariel-
ae23b5d45a
Core/Auras: fix nopch
2022-09-12 09:15:17 +02:00
ariel-
ee99e76fa9
Core/Auras: fix auras apply on player when loading. Fixes Ghost aura flags and player deathstate
2022-09-12 09:15:17 +02:00
ariel-
55577ad85b
Core/Spells: Fix some issues with channeled spells and aura duration mods
2022-09-12 09:15:16 +02:00
ariel-
b6fac86b71
Core/Spells: rework part 5: GameObject casting
2022-09-12 09:15:14 +02:00
ariel-
3fbbea61bd
Core/Spells: rework part 3: spells only handle at most one UnitAura and one DynObjAura during its lifetime
...
# Conflicts:
# src/server/game/Spells/Auras/SpellAuras.h
2022-09-12 09:15:13 +02:00
ariel-
2baddd4393
Core/Auras: remove too strict checks in area auras, since a few aren't owned by its caster
2022-09-12 09:15:12 +02:00
ariel-
6640641cce
Core/Auras: restrict target map update only to area auras as player requires to have auras registered on load
2022-09-12 09:15:12 +02:00
ariel-
e23f4e38cf
Core/Auras: skip target map update for one world tick if owner is not yet in world
2022-09-12 09:15:11 +02:00
ariel-
9f9f3fa24f
Core/Auras: make area and dynauras condition compliant by using the spellarea searcher instead of script searchers
2022-09-12 09:15:11 +02:00
ariel-
c81f48197d
Core/Spells: calculate crit chance only for spells that do damage/healing
2022-09-12 09:15:10 +02:00
ariel-
a804af7219
Core/Spell: SpellValueOverrides encapsulation
...
- No sense to let scripts use SpellValueOverrides, we already have modifiers in CastSpellExtraArgs struct
2022-09-12 09:15:04 +02:00
ariel-
1d3fbff332
Core/Auras: removed caster dependency from core
...
- Decoupled Unit logic: split of spell critical chance into done (caster bonuses) and taken (target bonuses), this allows to precalculate caster bonuses on aura apply and then check victim's auras on damage/healing calc
- Made static a bunch of methods (they no longer have this pointer because they are now called from periodic handlers which may or may not have an active caster in world)
- Simplified all AuraEffect bonuses into AuraEffect::_amount, no more duplicated code
- Critical chance and whether or not caster is player owned unit (for resilience calcs) is now saved one level upper, on Aura itself (it's impossible as of 3.3.5 to have different effects with different critical chances)
- Minor cleanup of SPELL_DAMAGE_CLASS_NONE and Arcane Potency (#18813 ) crit handling
2022-09-12 09:15:04 +02:00
Ovahlord
e83c5955b4
Core/Spells: moved Improved Devouring Plague to spell script and fixed the damage effect
2022-02-22 12:57:29 +01:00
Shauren
73bae7c5e5
Core/Spells: Correct implementation of SPELL_ATTR2_TRIGGERED_CAN_TRIGGER_PROC, SPELL_ATTR3_TRIGGERED_CAN_TRIGGER_PROC_2, SPELL_ATTR3_CAN_PROC_WITH_TRIGGERED and rename them (SPELL_ATTR2_ACTIVE_THREAT, SPELL_ATTR3_NOT_A_PROC, SPELL_ATTR3_CAN_PROC_FROM_PROCS)
2022-02-02 17:45:23 +01:00
Gildor
ffb22996b1
Revert "Core/Spells: Force Invisibility (mage) to leave combat." ( #27701 )
...
This reverts commit 4b0acb7432 .
Co-authored-by: kaelima <kaelima@live.se >
# Conflicts:
# src/server/game/Spells/Auras/SpellAuras.cpp
2022-02-02 17:42:52 +01:00
Ovahlord
520b53a5e0
Core/Spells: added a helper to determine whenever a periodic aura should roll over its duration on refresh
...
* introduce another custom spell attribute to grant full control over when or when not to roll over ticks
2022-01-14 18:46:03 +01:00
Ovahlord
0aa9129c3b
Core/Spells: let all periodic effects roll over their timers on refresh
...
* renamed SPELL_ATTR0_CU_DONT_RESET_PERIODIC to SPELL_ATTR0_CU_RESET_PERIODIC_TIMER and changed functionality to prevent described behavior from happening
2022-01-12 18:51:21 +01:00
Ovahlord
9085526f9a
Core/Spells: define and implement SPELL_ATTR8_PERIODIC_CAN_CRIT
...
* SPELL_ATTR8_DONT_RESET_PERIODIC_TIMER has been moved to a custom attribute (SPELL_ATTR0_CU_DONT_RESET_PERIODIC)
2022-01-12 17:33:34 +01:00
Krudor
732f5623f3
Core/Spells: Removed a faulty aura handler
2021-12-02 13:46:33 +01:00
Ovahlord
df38c26f92
Core/Units: re-added a few capability fixups that got removed in 0a7dfc15e2 and allow auras to send their amount values when changing amount via RecalculateAmount
2021-11-10 13:16:25 +01:00
Ovahlord
23e08a69ba
fixed build
2021-04-16 17:00:21 +02:00
Ovahlord
e93a66d287
Core/Spells: defined and implemented SPELL_ATTR5_DONT_TARGET_PLAYERS
2021-03-30 10:26:15 +02:00
Shauren
db683078a7
Core/Auras: Improve PROC_ATTR_USE_STACKS_FOR_CHARGES implementation to give stacks priority over charges if both are present in spell data
2021-02-24 23:09:57 +01:00