Commit Graph

239 Commits

Author SHA1 Message Date
hondacrx ad4aa7df0c Core/Spells: SpellAttr8 fixups - use creator instead of owner for SPELL_ATTR8_ONLY_TARGET_IF_SAME_CREATOR and removed cast time requirement for channelled spell predicted healing
Port From (https://github.com/TrinityCore/TrinityCore/commit/930a08fe03a033a6bb30fb8c94a8490c4b77fe91)
2024-02-01 21:10:24 -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 5e46dd951b Core/AreaTriggers: Implement missing functionality
* Scale curves are now taken into account when searching for units inside
* Implemented SpellModOp::Radius for areatrigger radius
* Implemented OverrideMoveCurve updatefields - overrides areatrigger position
* Implemented FacingCurve and AREATRIGGER_FLAG_HAS_ABSOLUTE_ORIENTATION
* Implemented ***Target fields for all shape types
* Fixed facing calculation for areatriggers with spline movement
Port From (https://github.com/TrinityCore/TrinityCore/commit/c676d1477239aec4d0b235a410e5627a7070a86e)
2024-01-30 21:14:55 -05:00
hondacrx 1c6563718e More work on scripts 2023-10-20 07:29:05 -04:00
hondacrx 33091ed942 More updates to scripts (still wont build) 2023-10-13 16:11:34 -04:00
hondacrx cda53c8e7f Some cleanups. (might break build for scripts as they are a WIP) 2023-10-08 10:35:31 -04:00
hondacrx f636ea225f Messed up the commit history, so here is all the files rip, Credit to TrinityCore 2023-09-16 08:42:35 -04:00
hondacrx b99f574f64 Core/Spells: Allow cancelling spell missiles without cancelling the entire spell
Port From (https://github.com/TrinityCore/TrinityCore/commit/ed98146d317f9b956e8ca23524631cdd2388492b)
2023-09-14 06:59:49 -04:00
hondacrx 25b27dcc72 Core/Auras: Allow effects of SPELL_AURA_SCHOOL_ABSORB_OVERKILL to be prevented by setting absorb value to 0 in script
Port From (https://github.com/TrinityCore/TrinityCore/commit/7b9493eec7c937642243c5ab0367f5ac8643879e)
2023-09-14 06:57:52 -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 44e79ec8ea Core/Spells: Removed old combo point code leftovers
Port From (https://github.com/TrinityCore/TrinityCore/commit/197d4369c894e9b088f862c7189f4fe20b4836ca)
2023-09-12 18:08:48 -04:00
hondacrx 07a2dd9859 Core/AI: Implemented OnHealthDepleted hook
Port From (https://github.com/TrinityCore/TrinityCore/commit/ea134c0eae83b4cdbb5f0e941ed867a144bb01f6)
2023-09-04 13:07:59 -04:00
hondacrx 04250a71f8 Core/Units: Fixed crash (previously was a memory leak) when vehicle creatures are deleted without ever being added to world
Port From (https://github.com/TrinityCore/TrinityCore/commit/40cdf0750d40668692660db817c5fc19d53aea2e)
2023-09-04 08:02:03 -04:00
hondacrx 54c6d05de0 Core/Auras: Implement SPELL_AURA_MOD_DAMAGE_PERCENT_DONE_BY_TARGET_AURA_MECHANIC
Port From (https://github.com/TrinityCore/TrinityCore/commit/6a760de79b6dc9d821bd6dd2c362301c307991f0)
2023-09-04 07:55:44 -04:00
hondacrx fb44221203 Core/Units: Added helper functions to modify UNIT_FLAG_UNINTERACTIBLE
Port From (https://github.com/TrinityCore/TrinityCore/commit/88ff97c1f96381565c47f8ca1993bdc7fce19fd6)
2023-09-04 07:50:01 -04:00
hondacrx 8bef51cf6e Core/Players: Fixed base hit chance initialization for players
Port From (https://github.com/TrinityCore/TrinityCore/commit/1f8eddc4f0cf443c45a930bc919007541210984a)
2023-08-28 11:19:01 -04:00
hondacrx f6807e152c Core: Update to 10.1.5
Port From (https://github.com/TrinityCore/TrinityCore/commit/0cea730fa23473a85c47451c3bd13df816f2b6e4)
2023-08-21 07:22:33 -04:00
hondacrx 219b1e2b36 Core/Auras: Fixed accessing invalid iterators in Unit::CalcHealAbsorb
Port From (https://github.com/TrinityCore/TrinityCore/commit/63b2188e75704ef4220d1e169d07179d07e898c7)
2023-07-01 08:48:01 -04:00
hondacrx 49a07ebcce Core/Items: Item bonus generation improvements
* Pass ItemContext to item creation wherever possible
* Support scaling item levels with m+ keystone levels (not used currently)
* Fixed item link validation when client sends it as default uninitialized bonus list with context only
* Support scaling items depending on current active season (seasons not implemented)
* Implemented content tuning redirection
Port From (https://github.com/TrinityCore/TrinityCore/commit/0fb8765a6638fd947b59fce44d5c31251d0cdadd)
2023-06-21 09:19:40 -04:00
hondacrx cf5f53e33f Core/Spells: Implement SPELL_ATTR10_RESET_COOLDOWN_UPON_ENDING_AN_ENCOUNTER
Port From (https://github.com/TrinityCore/TrinityCore/commit/c4aa4d4b5371af440b9fce2bb0866b90a50750f6)
2023-05-30 08:18:38 -04:00
hondacrx d55f4f836f Core/Units: Power handling improvements
* Don't include creature_template power multipliers in CreateMana updatefield
* Allow NPCs to have power types other than mana
* Add missing Essence config regeneration rate
* Fixed demon hunter powers not decaying immediately after combat
* Fixed some powers decaying immediately out of combat after energizing (for example holy power)
* Replace hardcoded list of powers to set to full on levelup with a db2 flag check
* Updated Creature::GetPowerIndex for 10.1 new power types
Port From (https://github.com/TrinityCore/TrinityCore/commit/1325e0c4b279d590acbcbb05d6abdf5fdb66a882)
2023-05-23 05:44:42 -04:00
hondacrx 35961a0121 Core/Battlegrounds: Moved AreaSpiritHealer resurrection handling to respective npc flags
Port From (https://github.com/TrinityCore/TrinityCore/commit/205aba1ff3a6f1ff92a8b26af646fd25f139c697)
2023-05-21 18:38:55 -04:00
hondacrx 0cfe1dc508 Core/Auras: Implement SpellAuraInterruptFlags2::WarModeLeave
Port From (https://github.com/TrinityCore/TrinityCore/commit/2b231c9866db62eaab2a5806f671c7dcf22073a5)
2023-05-21 17:21:22 -04:00
hondacrx f670656393 Core/Auras: Implement SpellAuraInterruptFlags2::EndOfEncounter
Port From (https://github.com/TrinityCore/TrinityCore/commit/998ee363c5e41141da158ea39c0dae0814967fba)
2023-05-21 17:19:33 -04:00
hondacrx fd377ebc0d Core/Auras: Implement SpellAuraInterruptFlags2::StartOfEncounter
Port From (https://github.com/TrinityCore/TrinityCore/commit/15135ce16f76d1635fa5606c99822b60bced94bf)
2023-05-21 17:17:00 -04:00
hondacrx 1ce3844697 Core/Auras: Implement SpellAuraInterruptFlags2::AbandonVehicle
Port From (https://github.com/TrinityCore/TrinityCore/commit/513788e884f15ca0d9dd3c0897e6fea87f0a1fff)
2023-05-21 17:11:13 -04:00
hondacrx 12c53d6182 Core/Unit: Named npc flags UNIT_NPC_FLAG_AREA_SPIRIT_HEALER and UNIT_NPC_FLAG_2_AREA_SPIRIT_HEALER_INDIVIDUAL
Port From (https://github.com/TrinityCore/TrinityCore/commit/920b9a99bdd2d7eb9b7a787c4872a38b862f75c8)
2023-05-21 17:09:28 -04:00
hondacrx 1ba4f55eec Core/Units: Calculate HoverHeight from model data
Port From (https://github.com/TrinityCore/TrinityCore/commit/d6133c78de9e2272765c2cfda82c440663acd254)
2023-04-25 17:23:24 -04:00
hondacrx bd2eb5baab Core/Creature: Implemented sparring with max health percent thresholds
Port From (https://github.com/TrinityCore/TrinityCore/commit/0750b7f8455df39a64462636ca296c6f2aa2b048)
2023-04-25 08:38:55 -04:00
hondacrx 19c484dc5a Core/Creatures: Compute CombatReach and BoundingRadius using DisplayScale
Port From (https://github.com/TrinityCore/TrinityCore/commit/81ea6f54d93ee10b03e6432c6071e0d0983796a2)
2023-04-21 18:21:08 -04:00
hondacrx d3297b96a2 Core/Skinning: Update correct skinning skill according to creature expansion
Port From (https://github.com/TrinityCore/TrinityCore/commit/229a7ac79d38b9db76387f92e846c04c151ad3aa)
2023-04-05 08:22:24 -04:00
hondacrx fe6135ed71 Core/Units: Added functions to modify WorldEffects updatefield
Port From (https://github.com/TrinityCore/TrinityCore/commit/51569217ad88a4d19d89a6083b56f228554ac90a)
2023-03-23 07:11:56 -04:00
hondacrx 4571d4666b Core/Creatures: Use togglable CREATURE_STATIC_FLAG_4_TREAT_AS_RAID_UNIT_FOR_HELPFUL_SPELLS instead of equivalent flag from creature_template.type_flag
Port From (https://github.com/TrinityCore/TrinityCore/commit/512f5138d44408882cb93ae4cff7cc8d1b627503)
2023-03-23 07:10:08 -04:00
hondacrx 89a3cb971a Core/Creatures: Implemented unkillable flag (prevent health from going below 1)
Port From (https://github.com/TrinityCore/TrinityCore/commit/7ea438ebdca93874776e02e9985db1da0a53f2fb)
2023-03-14 02:09:28 -04:00
hondacrx 17b7e6837f Core/Misc: Add launchDelay argument to Unit::SendPlaySpellVisual overload accepting Unit* argument
Port From (https://github.com/TrinityCore/TrinityCore/commit/982b60f39c526e217de3a3f24b740af41c4ede50)
2023-03-13 02:39:10 -04:00
hondacrx 1e8a62fb26 Partial revert of "Core/Spells: Moved SpellVisual functions from Unit to WorldObject" - client only accepts unit guids in these packets (orphan visuals not reverted)
Port From (https://github.com/TrinityCore/TrinityCore/commit/cbdb25595899aeb3d93e8d468a05bf8ef1f8e124)
2023-03-13 02:29:30 -04:00
hondacrx a831dff55d Core/Units: Pass real damage taken after level scaling calculations to DamageDone and DamageTaken script hooks
Port From (https://github.com/TrinityCore/TrinityCore/commit/9f088c2e04cba1f1870c6d9da1b16e9593430c54)
2023-02-19 02:10:23 -05:00
hondacrx fc2b562b9e Core/Auras: Remove channeled auras when caster and target are not on the same map
Port From (https://github.com/TrinityCore/TrinityCore/commit/b842f2be5509d804363183e0445ed71cb5eb221b)
2023-02-12 02:08:59 -05:00
hondacrx 1ed5fadf4d Core/Objects: Move EventProcessor update to WorldObject::Update
Port From (https://github.com/TrinityCore/TrinityCore/commit/b6965b2c30eb3317228b328a0c1da71235d7c257)
2023-02-12 01:23:08 -05:00
hondacrx 6b84616957 Core/Objects: Call base class Update function for Unit and GameObject (currently does nothing)
Port From (https://github.com/TrinityCore/TrinityCore/commit/3e85598d9987d674fb4d84728f776ebb85caf6b7)
2023-01-23 00:27:30 -05:00
hondacrx f73e64396f Update license headers for all files. 2023-01-18 17:25:32 -05:00
hondacrx ae33646702 Core/Auras: Fixed iterator invalidation crash in Unit::CalcHealAbsorb
Port From (https://github.com/TrinityCore/TrinityCore/commit/c5bd2ceda4834fdf88351016b66f1e23b7888de3)
2023-01-05 17:30:05 -05:00
hondacrx 2dc12dbb69 Core/Spells: Extended mechanic mask to uint64
Port From (https://github.com/TrinityCore/TrinityCore/commit/de7c03c8385780f05530c2b3cf952a712d5f8f00)
2022-12-17 17:37:07 -05:00
hondacrx 9b62b83984 Core/Loot: Implemented personal loot and tag sharing for non-boss loot
Port From (https://github.com/TrinityCore/TrinityCore/commit/133334a902b705dae6f7e92bb1009b84cf1c51d2)
2022-10-18 16:07:00 -04:00
hondacrx ca55d131ac Core/Spells: Fix glyph of stars (druid)
Port From (https://github.com/TrinityCore/TrinityCore/commit/56ef6c06eb165e9410a1f0af8b54492ad99eeced)
2022-09-24 13:57:38 -04:00
hondacrx 7cef6fc018 Core/Unit: Update collision height calculation
Port From (https://github.com/TrinityCore/TrinityCore/commit/f75f8d9bb8c0d764b8a7926476e7a16a3cfad713)
2022-09-11 14:31:09 -04:00
hondacrx 0a28bd434a Core/SAI: Rename LeavingWorld to OnDespawn & use it in SAI
Port From (https://github.com/TrinityCore/TrinityCore/commit/b0164fb2b9cc35663e337d48660d5bca1e973d99)
2022-09-05 21:57:54 -04:00
hondacrx 14a23ac682 Core/PacketIO: Implemented SMSG_SPELL_HEAL_ABSORB_LOG
Port From (https://github.com/TrinityCore/TrinityCore/commit/53b7c4d47c35f7823f5f50578beb0140f4279e03)
2022-07-29 18:01:57 -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