Commit Graph

142 Commits

Author SHA1 Message Date
hondacrx 5869fbaee0 Core/Spells: Named and implemented most of SpellAttr8
Port From (https://github.com/TrinityCore/TrinityCore/commit/dc9361fcc2eb16a59b52dfd8b0d47dfc1bf639be)
2024-02-01 18:59:34 -05:00
hondacrx bb2df1c0f9 Core/Spells: Named and implemented most of SpellAttr7
Port From (https://github.com/TrinityCore/TrinityCore/commit/4e87bd7942d932225436940f62e26d48719a42dd)
2024-02-01 15:39:38 -05:00
hondacrx c00a8d32ea Core/Auras: Implemented SPELL_ATTR7_DISABLE_AURA_WHILE_DEAD (suppress aura applications while dead without removing the aura)
Port From (https://github.com/TrinityCore/TrinityCore/commit/0f7dd4eadf90a5407fd232d083485430d725152f)
2024-02-01 10:27:09 -05:00
hondacrx 0b81750b42 Core/Spells: Defined and implemented more spell effect attributes - AlwaysAoeLineOfSight, IsHarmful, PlayersOnly, EnforceLineOfSightToChainTargets
Port From (https://github.com/TrinityCore/TrinityCore/commit/69317c25947e682036813aa7f6e9200056232a13)
2024-01-30 10:39:11 -05:00
hondacrx 902b217d88 Core/Auras: Implement SPELL_ATTR13_PERIODIC_REFRESH_EXTENDS_DURATION
Port From (https://github.com/TrinityCore/TrinityCore/commit/e1f345756ba34ccf4d4dd07b90c254097a240b51)
2024-01-30 09:39:40 -05:00
hondacrx cda53c8e7f Some cleanups. (might break build for scripts as they are a WIP) 2023-10-08 10:35:31 -04:00
hondacrx ccb5341c21 Some misc cleansup. 2023-10-06 17:33:20 -04:00
hondacrx 7b2d198832 Core/Auras: Treat auras with more than 1 active stack as using stacks too (max stack could have been changed from 0 to something else using spell mods)
Port From (https://github.com/TrinityCore/TrinityCore/commit/e0ab6330c1ef096b650702633a60181b9ecdd351)
2023-09-13 20:46:56 -04:00
hondacrx d7c2fa52f4 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
Port From (https://github.com/TrinityCore/TrinityCore/commit/9cdf3530f41e18fc815e7b164e40c01a18c3d757)
2023-09-13 18:18:29 -04:00
hondacrx 913cfa0fbd Core/Spells: Fixed spell duration scaling with combo points
Port From (https://github.com/TrinityCore/TrinityCore/commit/9e68fd1458551ab0f007b6044c9220da8f7d4199)
2023-09-12 18:00:30 -04:00
hondacrx 003942efba Core/Auras: Remove incorrect implementation of SPELL_ATTR8_DONT_RESET_PERIODIC_TIMER (this attribute does something else)
Port From (https://github.com/TrinityCore/TrinityCore/commit/799d63ce2cdf9b8cb7a74f9806178f9fefaba471)
2023-09-12 15:02:20 -04:00
hondacrx 66c1b205ef Scripts/Spells: Modernize spell script internals a bit
Port From (https://github.com/TrinityCore/TrinityCore/commit/228c56f3c5e23345cf2b5a391c614e52f61fe7f9)
2023-09-04 13:05:19 -04:00
hondacrx b7a8a88a76 Core/Auras: Fixed iterator invalidation crash with procs using SPELL_ATTR0_PROC_FAILURE_BURNS_CHARGE attribute
Port From (https://github.com/TrinityCore/TrinityCore/commit/15451ce699540c7d175f4a24d257778dedb0e3d7)
2023-04-21 18:32:54 -04:00
hondacrx 8921432333 Core/Spells: Added additional validation to loading spell_linked_spell to prevent infinite loops
Port From (https://github.com/TrinityCore/TrinityCore/commit/badb55bfd97c16fecfb8cd73ba99e39ecb6b622d)
2023-01-23 00:24:27 -05:00
hondacrx f73e64396f Update license headers for all files. 2023-01-18 17:25:32 -05:00
hondacrx 1ee88435c5 Core/Auras: Implemented SPELL_ATTR12_ONLY_PROC_FROM_CLASS_ABILITIES and SPELL_ATTR13_ALLOW_CLASS_ABILITY_PROCS attributes
Port From (https://github.com/TrinityCore/TrinityCore/commit/33954538bc30650f639e258eeb057c1340f4c949)
2023-01-11 00:47:11 -05:00
hondacrx 7357a98adc Core/Auras: Improve aura interactions with immunities on spell effect level
Port From (https://github.com/TrinityCore/TrinityCore/commit/66b03acc47665cd79646096e13aa8c6b513675aa)
2022-09-07 15:22:28 -04:00
hondacrx 8caa99803f Fixes aura assert by not removing player when crash from map. 2022-08-01 11:32:31 -04:00
hondacrx 16ce1fe55b Core/Spells: Refactor heal absorb code
Port From (https://github.com/TrinityCore/TrinityCore/commit/f25aceab282f1c3828015dec6af0505a82130674)
2022-07-29 17:49:01 -04:00
hondacrx 0affdfbda0 Core/Spells: Implement OnEffectAbsorbHeal and AfterEffectAbsorbHeal hooks
Port From (https://github.com/TrinityCore/TrinityCore/commit/44236c70787eae0239fb636e217305dfa043bf71)
2022-07-29 17:42:49 -04:00
hondacrx 0224d95b91 Core/Spells: Increase search radius for avoid problems with some spells that can't find units with huge combat reach
Port From (https://github.com/TrinityCore/TrinityCore/commit/b52ce8e65e8998df1b243b854129d359ee2d25ae)
2022-06-15 16:09:33 -04:00
hondacrx 5d06fd77be Core/Spells: Implemented SPELL_ATTR6_AURA_IS_WEAPON_PROC
Port From (https://github.com/TrinityCore/TrinityCore/commit/0710fd0ee09c6fd7cdd990d7a1d44cedb2a6034d)
2022-06-01 16:09:27 -04:00
hondacrx 399d39a4b9 Core/Spells: Implemented SPELL_ATTR5_AURA_UNIQUE_PER_CASTER
Port From (https://github.com/TrinityCore/TrinityCore/commit/91ca5527d64ac0bbcb22b2c03db480b7860e6bab)
2022-06-01 15:48:06 -04:00
hondacrx 35b5a28821 Core/Spells: Removed SPELL_SPECIFIC_JUDGEMENT
Port From (https://github.com/TrinityCore/TrinityCore/commit/4ef983f689177660f2d4c16c7063040c7fb0236d)
2022-06-01 13:47:28 -04:00
hondacrx 13701dac7c Core/Spells: Rename SpellAttr5 to use official attribute names
Port From (https://github.com/TrinityCore/TrinityCore/commit/738f285432b1ef6109d1c54ab7f40d743a994631)
2022-06-01 13:45:46 -04:00
hondacrx 62c2d34f1a Core/Spells: Rename SpellAttr4 to use official attribute names
Port From (https://github.com/TrinityCore/TrinityCore/commit/8d16a79dea4c0100d36e13b068c42499a3a48154)
2022-06-01 13:37:39 -04:00
hondacrx 8cddeb0fc5 Core/Spells: Rename SpellAttr3 to use official attribute names
Port From (https://github.com/TrinityCore/TrinityCore/commit/88d7b58a3dd8b0eb95c233a20c1608ddce73d9ea)
2022-06-01 13:01:55 -04:00
hondacrx a198e03a1d Core/Spells: Rename SpellAttr2 to use official attribute names
Port From (https://github.com/TrinityCore/TrinityCore/commit/dda375b9868d6dbe2a4d58b386bb90ae41d25e0d)
2022-06-01 11:53:42 -04:00
hondacrx a2d9499152 Core/Spells: Rename SpellAttr1 to use official attribute names
Port From (https://github.com/TrinityCore/TrinityCore/commit/c88b602a2c7eda598a4205dd0ec9f562c31f21b0)
2022-05-31 22:13:24 -04:00
hondacrx dc6eb46302 Core/Spells: Rename SpellAttr0 to use official attribute names
Port From (https://github.com/TrinityCore/TrinityCore/commit/a31e6819447626cd7b6967665001ea89bf6a0298)
2022-05-31 21:05:21 -04:00
hondacrx 5575703997 Revert "Core/Spells: Force Invisibility (mage) to leave combat."
Port From (https://github.com/TrinityCore/TrinityCore/commit/2065e0620704bf9ae7f0d25a7111ec2f65cdcde5)
2022-05-30 15:12:14 -04:00
hondacrx 9b6540c91d Misc fixes 2022-05-26 20:08:54 -04:00
hondacrx e775c710db Core/Spells: Aura refresh improvements
Port From (https://github.com/TrinityCore/TrinityCore/commit/6cd16b0ca9ff43b025e286f336b6af03c49b37db)
2022-05-24 13:02:26 -04:00
hondacrx bf0c12ab0c Core/Aura: Fixed thread-unsafe return from Aura::GetCaster()
Port From (https://github.com/TrinityCore/TrinityCore/commit/58ce0904aa08411570bb600c1604dc1fc0d01ac3)
2022-05-24 12:50:07 -04:00
hondacrx a167709cdf Core/Spells: Implemented PROC_ATTR_CANT_PROC_FROM_ITEM_CAST
Port From (https://github.com/TrinityCore/TrinityCore/commit/a3cc94080f9e5a246f5d6d64ef8ab5cc929da2ab)
2022-04-28 10:40:19 -04:00
hondacrx b9caad7455 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)
Port From (https://github.com/TrinityCore/TrinityCore/commit/b6bc8a50acaf153849f58c8b408e236bb2b70c35)
2022-03-10 13:40:20 -05:00
hondacrx 042bfc12e5 Convert alot of methods to use TimeSpan. 2022-03-01 23:47:53 -05:00
hondacrx 9587d3ea7d Update GameTime Methods 2022-03-01 17:33:20 -05:00
hondacrx c14f1eb3dc Remove custom OptionalType and use the default c# nullable type. 2022-03-01 17:27:56 -05:00
hondacrx fc33b8cd20 Core/Auras: Store non-unit caster guids in auras
Port From (https://github.com/TrinityCore/TrinityCore/commit/bbed5dc3e8327535e3842650b966291dd90c9bc7)
2022-02-27 14:36:44 -05:00
hondacrx 80a739712b Core/Auras: Fixed sending EstimatedPoints for auras that have only some effects that use it
Port From (https://github.com/TrinityCore/TrinityCore/commit/bf6b3aaed6b87225b970390c45b91a51242206c0)
2022-02-25 13:05:30 -05:00
hondacrx 98206ec201 Fixes aura infinite loop
Port From (https://github.com/TrinityCore/TrinityCore/commit/9cb01a79046fce3f76835bb68bf66e4f3079e4bc)
2022-02-22 18:37:01 -05:00
hondacrx 883a3bb990 First try at updating command system to be like TC. Still needs alot of testing/work 2022-01-20 09:57:15 -05:00
hondacrx 0d68984717 Misc fixes, and added GetDebugInfo() which was missed. 2022-01-05 13:11:32 -05:00
hondacrx 521cd805c4 Core/Spell: don't send duration for auras caused by dynobjects.
Port From (https://github.com/TrinityCore/TrinityCore/commit/2efb6b618798b11f0c57a80661e04955ff63ed58)
2021-12-27 15:36:30 -05:00
hondacrx 0464fe61bb Core/Spell: do not allow auras from dynamic objects to stack if they come from the same spell cast by the same caster.
Port From (https://github.com/TrinityCore/TrinityCore/commit/55611104bedefc301eb4bee8bc282057307ebde4)
2021-12-27 15:35:20 -05:00
hondacrx 06be062d91 Core/Spell: SpellAura Redux
Port From (https://github.com/TrinityCore/TrinityCore/commit/f7299dce9770a5b4a3a5ab289e930a390aa0407a)
2021-11-29 14:38:37 -05:00
hondacrx b3a92137d3 Core/Spells: SpellHistory updates
Port From (https://github.com/TrinityCore/TrinityCore/commit/8cc6520b89583d4bf6549b28fa5b7390fc2b0b9d)
2021-11-23 14:36:54 -05:00
hondacrx 5a90a3ddde Scripts/Auras: Lookup aura scripts by their type, not name
Port From (https://github.com/TrinityCore/TrinityCore/commit/9fc8c86e9a47194a1b271fbcf7bf9e85cb3f0826)
2021-11-03 12:31:46 -04:00
hondacrx 78421960db Core/Spells: added a helper to reset proc cooldowns
Port From (https://github.com/TrinityCore/TrinityCore/commit/7084e0c3601cef86d01d2162c77623feef9fc8f2)
2021-10-17 16:58:00 -04:00