Shauren
a39d0db9ec
Core/Spells: Implemented evoker empower spell mechanic
2024-05-01 22:26:53 +02:00
Ovahlord
55ce5b150f
Core/Auras: Implemented OnHeartbeat AuraScript hook and refactored an aurascript to use it as example ( #29945 )
...
* Updated Amalgam's Seventh Spine dummy aura script to use the new AuraScript hook
2024-04-27 19:04:10 +02:00
Shauren
9894f6b802
Core/Random: Changed random functions returning doubles to return floats
...
* They were all cast to float at use anyway
* Improves roll_chance_f performance (rand32() is now called internally by uniform_real_distribution once instead of twice)
2023-10-31 20:20:00 +01:00
Shauren
9f1cc2e679
Scripts/Spells: Improved compiler error reporting with wrong spell script function signatures
2023-08-05 14:27:05 +02:00
Shauren
9cdf3530f4
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-01 21:31:06 +02:00
Shauren
46b67ec205
Core/Scripts: Fixed unsafe function pointer type casting in spell scripts
2023-07-27 19:37:57 +02:00
Shauren
228c56f3c5
Scripts/Spells: Modernize spell script internals a bit - this makes Prepare macros unneccessary
2023-07-24 00:27:25 +02:00
Shauren
f8a6a9b017
Scripts/Spells: Added spell effect validation helper
2023-05-30 19:34:19 +02:00
Shauren
3260b94dd6
Core/Misc: Replace string to int conversion functions from Common.h with c++17 std::from_chars based ones Trinity::StringTo
2023-05-13 15:46:27 +02:00
Shauren
122d41eb06
Scripts/Spells: Added proc requirements to a few auras that have SPELL_ATTR3_CAN_PROC_FROM_PROCS attribute
2023-04-04 23:57:57 +02:00
Shauren
92ed5e8af1
Core/Misc: Include cleanup, 2023 edition
2023-01-07 22:38:21 +01:00
Shauren
6713fa4c93
Core/Scripts: Added CalcCastTime spell script hook
2022-07-29 20:24:28 +02:00
Seyden
f25aceab28
Core/Spells: Refactor heal absorb code
2022-07-28 21:26:48 +02:00
Nyr
44236c7078
Core/Spells: Implement OnEffectAbsorbHeal and AfterEffectAbsorbHeal hooks
2022-07-28 21:26:48 +02:00
Shauren
701532f9f0
Core/Scripts: Expose calculated spell value variance to scripts
2022-07-15 18:31:54 +02:00
Shauren
86e7789160
Core/Scripts: Allow spell script ValidateSpellInfo to work with any container type
...
(cherry picked from commit f2f0aeb562 )
2022-03-10 21:29:07 +01:00
Shauren
ad4f4bfab7
Core/Misc: Minor game include cleanup
2022-02-13 00:49:10 +01:00
Shauren
f8ad7017dd
Core/Misc: Move (or delete) constructors and destructors to .cpp files (avoids compiling them in every file that includes them)
2022-02-12 21:36:46 +01:00
Shauren
2cc652b305
Core/Scripts: Expose IsCrit to hit hooks for spell scripts
2022-01-30 12:36:29 +01:00
Peter Keresztes Schmidt
595e89e02b
Core/Spells: Mark constructors of Spell/AuraScript handlers as explicit ( #25248 )
...
Mostly to make clang-tidy happier
(cherry picked from commit 34d403e83f )
2022-01-26 20:57:27 +01:00
Ovah
c7cf9f8c6c
Core/Spells: Expose corpseTarget to spell scripts with SpellScript::GetHitCorpse() ( #24981 )
...
Closes #24945
(cherry picked from commit 94a4404e7e )
2022-01-22 00:34:38 +01:00
Giacomo Pozzoni
8f4db9aa69
Core/Spells: implement corpse target type support and properly fix resurrections ( #24921 )
...
* Core/Spells: implement corpse target type support and properly fix resurrections
(cherry picked from commit df193945d9 )
* Core/Spells: implement TARGET_CORPSE_SRC_AREA_RAID and updated remaining resurrection effect handlers for updated corpse targeting
(cherry picked from commit 98b075cb4b )
* Fix no-pch
Co-authored-by: Ovahlord <dreadkiller@gmx.de >
(cherry picked from commit cc71da35b5 )
2022-01-20 00:13:02 +01:00
Seyden
12d00e2e5f
Scripts/Spells: Implement OnPrecast scripting hook for spell scripts ( #27632 )
...
* Fires before cast bar starts
2022-01-18 21:06:10 +01:00
Keader
4110a06e81
Core/Misc: Fixed resistance calculate for Mutated Transformation and Twilight Bloodbolt ( #24717 )
...
Ref: 9f7b464a6a
- Implemented a new SpellScript hook that allow control Resistance/Absorb amount of a damage spell.
(cherry picked from commit d81a9e5bc3 )
2022-01-06 19:59:50 +01:00
Matan Shukry
a3d06f2f32
Scripts/Spells: Implemented various rogue spells ( #26319 )
...
* Ruthlessness
* Mastery: Main Gauche
* Venomous Wounds
* Symbols of Death
* Backstab
* Premeditation
* Grand Melee
* True Bearing
* Slice and Dice
* Roll the Bones
2021-12-25 21:25:54 +01:00
PolarCookie
f7299dce97
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
(cherry picked from commit ec3cb05d7f )
2021-11-24 20:35:19 +01:00
Shauren
2965d201ab
Core/Spells: Changed Spell::SendCastResult arguments to signed ints to match packet structure
2021-10-10 19:00:02 +02:00
Shauren
8a4e1119ac
Core/Spells: Unify spell effect access api in both branches
2021-09-04 15:13:15 +02:00
Shauren
3dd75a49b1
Core/Spells: Removed SpellEffIndex effIndex argument from spell effect handlers, it was commented out in almost every handler
2021-08-28 19:51:29 +02:00
ariel-
962f6d7988
Core/Spells: rework part 5: GameObject casting
...
Closes #21330
Closes #18885
Ref #18752
(cherry picked from commit 45c5e1b9d6 )
2021-08-28 15:59:11 +02:00
ariel-
f3548d45d0
Core/Spells: rework part 3: spells only handle at most one UnitAura and one DynObjAura during its lifetime
...
Closes #15088
(cherry picked from commit e8d5aa56cc )
2021-08-28 15:59:11 +02:00
ariel-
8c379e920c
Core/Spells: fix logic error causing near teleports to drop combat for players
...
Closes #21362
(cherry picked from commit 65709e1c30 )
2021-06-19 23:33:24 +02:00
ariel-
fccf1a8c62
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
Closes #19876
(cherry picked from commit cb9e72e521 )
2021-06-13 00:59:13 +02:00
Shauren
1a7779a6e6
Core/Spells: Expose number of targets selected for each spell effect to scripts to allow implementing spells that do something depending on number of targets hit
2021-05-13 00:38:09 +02:00
Matan Shukry
530631e0a7
Core/Auras: Implemented SPELL_AURA_SCHOOL_ABSORB_OVERKILL ( #26269 )
2021-04-17 22:42:34 +02:00
Robingad
f8255b1541
Core/Script: Implement CalcCritChance hooks for spell and aura scripts ( #26116 )
...
(cherry picked from commit AshamaneProject/AshamaneCore@4e0a3f4343 )
2021-03-25 21:28:22 +01:00
Matan Shukry
2420f4e7a1
Core/Scripts: Implemented new aura script hook OnEnterLeaveCombat
2021-03-23 00:46:47 +01:00
Matan Shukry
1086007f98
Scripts/Spells: Fixed various paladin spell scripts and removed outdated ones
2021-03-04 22:46:44 +01:00
Matan Shukry
19b733fefc
Scripts/Spells: Fix Prayer of Mending ( #26020 )
2021-02-21 21:12:08 +01:00
Matan Shukry
7159de62b6
Scripts/Spells: Remove const from AuraEffect argument for AuraEffectProcFn
2021-02-13 14:08:16 +01:00
Shauren
b231903932
Core/Misc: Port all the refactors sneaked in master to 3.3.5 include cleanup port
2020-09-04 13:38:24 +02:00
Shauren
1c52d5fff7
Core/Misc: Replace NULL with nullptr
2020-08-14 17:06:03 +02:00
Shauren
c7306439e7
Core/Spells: Implement using different difficulty data from all spell related db2s, not just SpellEffect and SpellPower
2020-06-12 01:29:18 +02:00
Aokromes
b0bf1275ee
New Year
2020-01-02 06:44:10 +01:00
Shauren
96575e33bb
Core/Items: Add location filters to Player::GetItemByEntry
2019-11-29 00:10:29 +01:00
Shauren
0a2d9ad2f7
Core/Items: Add ItemContext param to Item::Create function
2019-11-23 00:03:42 +01:00
vincent-michael
5620eb9463
Update copyright note for 2019
...
auto happy = new year(2019);
2019-01-01 10:14:33 +01:00
vincent-michael
7d00ae4045
Update copyright note for 2018
...
auto happy = new year(2018);
2018-01-01 00:40:17 +01:00
ariel-
43260b7ebb
Core/SpellScript: allow optional parameters to be passed to FinishCast
...
followup of 50a3ce5703
(cherry picked from commit aa21137aeb )
2017-12-26 20:30:36 +01:00
Aokromes
6acb2d0331
Core/Spell: Fix typo on documentation
...
By Mihapro
2017-11-02 19:52:47 +01:00