Commit Graph
739 Commits
Author SHA1 Message Date
Ovahlord 8bd0bfdb8c Core/Units: renamed PrimaryStat to AllStats2 as the only known spell with the misc value for that type is also affecting all stats. Also cleaned up accidental include 2026-06-11 10:06:35 +02:00
Ovahlord a207839337 Core/Misc: correct some include orders and comments 2026-06-10 13:16:45 +02:00
Ovahlord af40c9404b Core/Units: moved base stats handling into a own class 2026-06-10 12:20:35 +02:00
Ovahlord c1c7dc5ef9 Core/Misc: rename Stats to StatType 2026-06-10 10:24:10 +02:00
Ovahlord 5d22ddd499 Core/Misc: rename Powers to PowerType 2026-06-09 08:19:48 +02:00
Ovahlord b008096057 Core/Units: only grant 50% crit damage bonus for magical periodic effects originating from ranged attacks
supercedes #463
2026-03-22 19:33:40 +01:00
Ovahlord 266d1d7717 Core/Creatures: temporarily revert all summon changes in order to keep the master branch functional until the implementation is done 2026-02-28 11:06:35 +01:00
Ovahlord 857f79b22a Core/Creatures: converted CMSG_PET_ACTION to packet class and moved most parts of it to the SummonInfo API 2025-08-24 18:17:38 +02:00
Ovahlord 0e5489a9da Core/Creatures: moved despawning summons upon summoner death to SummonInfo API and implemented more specific despawn rules 2025-08-24 13:23:45 +02:00
Ovahlord 860f6b1bd3 Core/Creatures: implement SummonPropertiesFlags::DespawnOnSummonerLogout and fixed replacing totems when summoning new ones 2025-08-20 07:13:05 +02:00
Ovahlord 7f4c7a4412 Core/Units: Added new accessor methods to select Summons either by slot, spellId or creatureId 2025-08-18 20:02:59 +02:00
Ovahlord 2f9ced6ddc Core/Creatures: moved the initialization of CreatorGUIDs to new summon handling 2025-08-18 07:30:11 +02:00
Ovahlord ce55b5ad24 Core/Creatures: moved replacement of old summons and sending of SMSG_TOTEM_CREATED to new SummonInfo API and 2025-08-17 15:13:18 +02:00
Ovahlord 5848eedb24 Core/Creature: implement initial SummonInfo API for handling summons in the future 2025-08-09 15:01:55 +02:00
Ovahlord a7c8b2e0e0 Core/Units: corrected forward declaration for CharmInfo 2025-08-06 05:30:32 +02:00
Shauren 0d1d468c88 Core/Spells: Fully prevent infinite proc loops and add logging to detect most spells that could possibly trigger this behavior at startup 2025-08-03 14:28:23 +02:00
Ovahlord 744aa1fd96 Core/Spells: make proc related fields typesafe 2025-08-03 13:33:05 +02:00
Ovahlord 088bbbd328 Core/Units: make use of the PlayHoverAnim update flag to store the play hover anim state
* this fixes playing hover animations for units which have enabled their hover animation without using anim tiers
2025-07-31 22:36:52 +02:00
Ovahlord 4b7d68830a Core/Misc: converted more macros to constexpr 2025-06-21 14:15:58 +02:00
Ovahlord e8c928fc74 Core/Units: ported rage generation refactors from Classic 2025-06-19 23:30:04 +02:00
Ovahlord 4539f848ac Core/Units: ported base attack time refactors from master branch 2025-06-19 23:18:17 +02:00
Ovahlord bb6a8ac297 Core/Units: moved CharmInfo class to an own file 2025-06-14 19:13:44 +02:00
Ovahlord 5c9ecf27e9 Core/Spells: dropped spell_bonus_data table and use the dbc internal data to calculate ap and sp bonus values
* some spells have a special formula in their tooltips, which need manual scripting via the CalcDamage and CalcHealing hooks respectively
2025-06-08 15:16:17 +02:00
Ovahlord 6eb73788f4 Core/Units: deprecate CREATURE_FLAG_EXTRA_NO_COMBAT and use CREATURE_STATIC_FLAG_IGNORE_COMBAT to turn creatures passive 2025-03-15 14:27:16 +01:00
Shauren 7c70827377 Core/Combat: Allow PvE combat references to become suppressed, just like PvP ones 2025-03-15 08:37:47 +01:00
Shauren a7644b03d4 Core/Creatures: Implemented CREATURE_STATIC_FLAG_2_IGNORE_SANCTUARY (ignore SPELL_EFFECT_SANCTUARY, used by Vanish) 2025-03-15 07:16:45 +01:00
Shauren 4ead80f388 Core/Auras: Minor optimization for Unit object creation with msvc (not allocating a list end sentinel node for all of the 500 lists stored in Unit for each aura type) 2025-03-14 16:57:04 +01:00
Ovahlord f46b6f0797 Core/Units: removed the packetOnly parameter from several movement flag setters 2025-03-10 17:43:42 +01:00
Ovahlord 2953efb7a3 Core/Movement: ported most movement updates from master branch and corrected behavior of CREATURE_STATIC_FLAG_4_PREVENT_SWIM 2025-03-09 20:49:41 +01:00
Ovahlord f9425284ca Core/Units: updated power regeneration handling to get closer to the master version of it 2025-03-09 10:30:07 +01:00
Ovahlord e8588fd5ba Core/Objects: ported Heartbeat implementation fron master branch 2025-03-09 02:40:05 +01:00
Shauren b5ec59a07e Core/Units: Power handling improvements 2023-12-18 10:02:19 +01:00
Ovahlord 0f035fe940 Core/Units: refactor rage generation to reflect patch 4.0.1 changes:
* melee attacks will now send their awarded rage within SMSG_ATTACKER_STATE_UPDATE and moved the rage reward mechnic from Unit::DealDamage into Unit::AttackerStateUpdate

* killed CleanDamage struct and provide plain unmitigated damage values instead as since patch 4.0.1 the rage gained from damage taken is fully normalized and ignores any kind of damage reduction or negation
2023-12-10 18:26:24 +01:00
Shauren 388c504047 Core/Spells: Named and implemented most of SpellAttr8 2023-10-23 18:07:05 +02:00
Shauren 3c0cf32b43 Core/Spells: Named and implemented most of SpellAttr7 2023-10-21 20:32:32 +02:00
Shauren 77c017555b Core/Auras: Registering a new owned aura will now search existing owned auras instead of applied auras to check for unstackable one 2023-10-18 21:43:46 +02:00
Ovahlord 5c13baf230 Core/Misc: removed unused includes and removed unit include from vehicle.h 2023-10-10 03:01:05 +02:00
Ovahlord faa78b9e07 Core/Units: moved spell cast request includes out of unit class and use unique_ptr instead of optionals 2023-10-09 22:07:13 +02:00
funjoker df32b341a5 DB/Creatures: Port master model system
Fixes incorrect displayid for creatures, due to probability
2023-09-15 23:52:51 +02:00
Ovahlord 770f9e11db Core/Movement: sync spline code with master branch 2023-08-19 15:04:34 +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
Traesh ee8e20d81f Core/Units: Allow autoattack if channelling with SPELL_ATTR5_ALLOW_ACTIONS_DURING_CHANNEL 2023-07-16 15:30:34 +02:00
Ovahlord 5f808b5247 Core/Entities: modernized several pointers and arrays in Player, Unit and Creature classes 2023-07-08 17:55:25 +02:00
Ovahlord aaff7e2ced Core/Units: fixed more deprecation warnings 2023-07-07 22:54:01 +02:00
Ovahlord e12c3597f4 Core/Unit: fixed more deprecation warnings 2023-07-07 22:29:52 +02:00
Ovahlord 40ec92758c Core/Packets: converted SMSG_EMOTE to packet class 2023-06-05 13:24:02 +02:00
Ovahlord 9455b09518 Core/Packets: converted SMSG_PET_ACTION_SOUND to packet class and renamed its related method to Unit::SendPetActionSound 2022-12-11 20:12:35 +01:00
Ovahlord 92c9661804 Core/Packets: converted SMSG_PET_ACTION_FEEDBACK to packet class and added spellId argument to Unit::SendPetActionFeedback 2022-12-11 20:03:57 +01: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 c78371f321 ore/Spells: Autorepeat casting fixes
* Fixed cast bars of ranged spells not disappearing when canceled while autoshooting
* Replaced hacky 500ms delay on non auto shot autorepeat spells with native spell cast time (wands have 500ms cast time)
* Update cooldowns before attempting to cast autorepeat spells (for cases when cooldown ends on the same server tick as cast attempt)
2022-09-30 11:08:20 +02:00