Commit Graph

121 Commits

Author SHA1 Message Date
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
hondacrx 5ad5b8ef18 Core/Spells: Implemented SPELL_AURA_SUPPRESS_ITEM_PASSIVE_EFFECT_BY_SPELL_LABEL
Port From (https://github.com/TrinityCore/TrinityCore/commit/6e4a90d2749c7675eebbb3eb41cd50ecaab78b7e)
2021-10-16 18:26:30 -04:00
hondacrx b759f6204f Fixes npc not chasing, Also fixes auras not being applied. 2021-10-13 18:12:24 -04:00
hondacrx 727e0100a1 Core/Spells: Send OriginalCastId in SMSG_SPELL_START and SMSG_SPELL_GO for triggered spells in 'game' project
Port From (https://github.com/TrinityCore/TrinityCore/commit/555b2d40ecc22eb0ea4bf913b534ffa7197fa6fe)
2021-10-03 13:55:43 -04:00
hondacrx e1aa4334d2 Core/Spells: Removed CastSpellExtraArgs constructors accepting ObjectGuid, they would become ambiguous with future changes
Port From (https://github.com/TrinityCore/TrinityCore/commit/3af9be830d736506ed4544a922699ed0f7a7ecd4)
2021-10-03 13:12:12 -04:00
hondacrx b9c8c54b28 Core/Auras: fix auras apply on player when loading. Fixes Ghost aura flags and player deathstate
Port From (https://github.com/TrinityCore/TrinityCore/commit/071d112ed1f84c5be502f3121a3f362b913f33e2)
2021-09-09 13:38:15 -04:00
hondacrx 4573123717 Core/Spells: Fix some issues with channeled spells and aura duration mods
Port From (https://github.com/TrinityCore/TrinityCore/commit/b2de3efb4b3e023874b6e28dd3a0a82b2c735ca8)
2021-09-09 10:23:51 -04:00
hondacrx 5c4a7511ff Core/Spells: Cleanup spell effects
Port From (https://github.com/TrinityCore/TrinityCore/commit/8a4e1119ac21e2d1112d1717337597fe073e495f)
2021-09-08 17:40:50 -04:00
hondacrx cdd34e644a Fixes loading into server/creating new character. 2021-08-31 13:20:06 -04:00
hondacrx 85f7edc339 Misc fixes. 2021-08-29 18:46:18 -04:00
hondacrx 949d4806c5 Core/Spells: rework part 5: GameObject casting
Port From (https://github.com/TrinityCore/TrinityCore/commit/962f6d7988b9003e550f6745be7cff812e9d8efa)
2021-08-29 18:27:08 -04:00
hondacrx 091272755c Core/Spells: rework part 3: spells only handle at most one UnitAura and one DynObjAura during its lifetime
Port From (https://github.com/TrinityCore/TrinityCore/commit/f3548d45d0a74203ef6f5c7282c31ba794ddf7a1)
2021-08-28 17:03:47 -04:00
hondacrx 663f082640 Some Cleanups from porting. 2021-08-23 14:29:45 -04:00
hondacrx 9947e778b7 Core/Auras: remove too strict checks in area auras, since a few aren't owned by its caster
Port From (https://github.com/TrinityCore/TrinityCore/commit/95c8eae12340d2df59d63c7f67874d21af46a171)
2021-08-20 18:55:14 -04:00
hondacrx 936f9d4d93 Core/Auras: added sanity checks for area auras having a different owner unit than caster
Port From (https://github.com/TrinityCore/TrinityCore/commit/6c642f33b58ce81eb5b1345a7f0eb89de6040251)
2021-08-20 18:50:01 -04:00
hondacrx a2628af13a Core/Auras: check conditions against referer caster, just as spells do
Port From (https://github.com/TrinityCore/TrinityCore/commit/ffa359c21cf92810d2c927496749148ff6ea9042)
2021-08-09 10:00:05 -04:00
hondacrx bfd44a494d Core/Auras: restrict target map update only to area auras as player requires to have auras registered on load
Port From (https://github.com/TrinityCore/TrinityCore/commit/8e7a12a87aa6502b7bf9adc42478283859f9268a)
2021-08-09 09:25:37 -04:00
hondacrx 001b026bce Core/Auras: Fix incorrect use of GetUnitOwner() in DynObjAura::FillTargetMap
Port From (https://github.com/TrinityCore/TrinityCore/commit/07f51437fc9ddba2810c090caa76ab294bcf777b)
2021-07-22 07:47:40 -04:00
hondacrx 50fcbd3aaf Some cleanups 2021-07-08 13:01:46 -04:00
hondacrx 868bbf9edd Fixes a Assert with calling GetUnitOwner when aura is a DynObjAura.
Not sure if this is the right fix, or if there is more places it should be changed.
2021-07-03 20:42:57 -04:00
hondacrx 1d9e839bc9 Core/Auras: remove obsolete check that was preventing some auras to proc even if they met conditions otherwise
Port From (https://github.com/TrinityCore/TrinityCore/commit/1fe817a9957bdc62d1e9a0b33f4615746831a6a7)
2021-06-23 23:51:38 -04:00
hondacrx 5bbd708070 Core/Auras: make area and dynauras condition compliant by using the spellarea searcher instead of script searchers
Port From (https://github.com/TrinityCore/TrinityCore/commit/1f3e365ff6c010424746f34104d1228fb6a96b8a)
2021-06-23 23:23:48 -04:00