Commit Graph
2538 Commits
Author SHA1 Message Date
Ovahlord 0f6a99bd85 Core/Units: moved stats modifiers and multipliers into a struct for future ports of the remaining secondary stats 2026-06-12 11:55:12 +02:00
Ovahlord 38784337a2 Core/Auras: refresh combat rating gained from SPELL_AURA_MOD_RATING_FROM_STAT whenever a stat updates 2026-06-11 15:23:08 +02:00
Ovahlord 981e70a5a1 Core/Players: fixed health initialization for players after levelups and fixed adding/reducing health based on the player's current health percentage 2026-06-11 12:43:17 +02:00
Ovahlord a43db2bf4a Core/Units: fixed applying stat bonus values from SPELL_AURA_MOD_STAT 2026-06-11 10:14:10 +02:00
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 133b635925 Core/Units: round stat pct bonus values to the nearest integral number to match sniff behavior 2026-06-11 09:23:21 +02:00
Ovahlord d0b0f35a42 Core/Units: fixed initializing stat multipliers and displaying positive and negative mods 2026-06-11 05:41:38 +02:00
Ovahlord 93743b4ae8 Core/Units: initialize stat multipliers with 1.0 2026-06-10 13:32:49 +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
Shauren b31333615f Core/Spells: Fixed autoattack timer being reset by almost every spell cast 2026-03-24 21:27:06 +01: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 73effb91ad Core/Creatures: moved summon AI hooks to SummonInfo API 2025-08-23 08:08:02 +02:00
Ovahlord 98d4a57db1 Core/Creatures: moved pre/post summon actions into SummonInfo API and disabled most old TemporarySummon functionalities 2025-08-22 20:26:10 +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
Ovahlord ede231982e Core/Spells: added missing part of 0d1d468c 2025-08-03 19:23:38 +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
Shauren b13703f1ea Core/Auras: Fixed iterator invalidation crash with procs using SPELL_ATTR0_PROC_FAILURE_BURNS_CHARGE attribute 2025-08-03 14:11:56 +02:00
Ovahlord 744aa1fd96 Core/Spells: make proc related fields typesafe 2025-08-03 13:33:05 +02:00
Shauren 78de91a487 Core/Spells: Rename confusing SpellState enum values
* SPELL_STATE_CASTING -> SPELL_STATE_CHANNELING (was used for "channel in progress")
* SPELL_STATE_DELAYED -> SPELL_STATE_LAUNCHED
2025-08-02 12:37:52 +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
Treeston f95a8bfdca Core/Common: Tokenizer -> Trinity::Tokenize 2025-07-30 20:51:19 +02:00
Shauren a2079b5835 Core/Spells: Split TRIGGERED_IGNORE_POWER_AND_REAGENT_COST into separate POWER and REAGENT flags 2025-07-28 21:57:12 +02:00
Ovahlord 4b7d68830a Core/Misc: converted more macros to constexpr 2025-06-21 14:15:58 +02:00
Ovahlord 65b0057332 Core/Units: fixed differences for rage generation between branches 2025-06-20 00:00:45 +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 ab866ca985 Core/Units: dealing melee damage will now generate rage based on armor reduced damage instead of the original value 2025-06-19 22:47:45 +02:00
Ovahlord 452da00b2a Core/Player: updated the Death Knight Rune system to get closer to the Classic implementation
* Runes will no longer trigger a 1.5 seconds cooldown when missing and instead refund the runes immediately
2025-06-15 15:13:56 +02:00
Ovahlord bb6a8ac297 Core/Units: moved CharmInfo class to an own file 2025-06-14 19:13:44 +02:00
Ovahlord 254ebe6cbf Misc: fixed nopch build 2025-06-14 17:22:58 +02:00
Ovahlord eceecac7c5 Core/Player: removed manual mastery aura amount calculation as it's already done within the spell effect amount 2025-06-14 16:22:03 +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
Ovahlord 3e3212c9fe Core/Units: Allow self inflicted damage to bypass CREATURE_STATIC_FLAG_UNKILLABLE 2025-03-15 09:09:03 +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 164289b3b2 Core/Units: ported namings for UnitFlags and UnitFlags2 and added the check for forbidden flags in database 2025-03-11 18:06:35 +01:00
Ovahlord 291741c440 Core/Units: updated UpdateStatBuffMod to the same handling as the cata_classic branch 2025-03-10 20:05:14 +01:00