Commit Graph
38286 Commits
Author SHA1 Message Date
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
Ovahlord 4f309c127a Core/Units: round rage gain values up so taking at least one point of damage will ensure you gain a rage point 2023-12-10 17:09:55 +01:00
Ovahlord 6cb2bd953d Core/Units: fixed a rounding issue that caused very low damage unintentionally being reduced to zero
*also feed the AttackerStateUpdate  SubDamage with the correct values
2023-12-10 16:58:21 +01:00
Ovahlord 8c3d501524 Core/Units: generating rage from damage taken will now use the full unmitigated damage amount instead of the final instead 2023-12-10 04:37:44 +01:00
Ovahlord df646fbe6a Core/Objects: fixed packet guid writing 2023-12-10 03:29:23 +01:00
Shauren 4bc6115d4e Build: Fixed finding openssl 3.2 on windows 2023-12-10 03:04:57 +01:00
Ovahlord 65218b02f9 Scripts/Instances: converted DataHeader macro to constexpr to keep their definition within their namespace 2023-12-10 02:22:54 +01:00
Ovahlord 96b2c70c04 buildfix 2023-12-09 22:11:16 +01:00
Ovahlord 2e3d90352f nopch fix 2023-12-09 21:47:11 +01:00
Ovahlord bdf61a6f1f Scripts/World: b1fce7c88f followup 2023-12-09 20:58:45 +01:00
Grindelwald b1fce7c88f Scripts/World: updated Update inkeeper content 2023-12-09 20:57:41 +01:00
Ovahlord 758694af49 Build/CMake: enable unity builds for scripts project 2023-12-09 05:31:05 +01:00
Ovahlord 40d6e2a1a7 Scripts/Misc: fixed redundant enum names and definitions in same namespaces 2023-12-09 05:30:44 +01:00
Ovahlord ea30806159 Scripts/EasterKingdoms: moved scripts into their corresponding namespace 2023-12-09 05:09:19 +01:00
Ovahlord 22c843d8fe Scripts/Kalimdor: moved scipts into their corresponding namespace 2023-12-09 02:34:48 +01:00
Ovahlord 93d8ed48b7 Scripts/Northrend: moved scripted into their corresponding namespace (part 2) 2023-12-09 00:21:22 +01:00
Ovahlord 7ad103d20f Scripts/Northrend: moved scripts into their corresponding namespace (part 1) 2023-12-08 23:06:53 +01:00
Ovahlord 6d1eb573bc Scripts/Events: moved scripts into their respective namespace 2023-12-08 22:04:53 +01:00
Ovahlord 714d93c9da Scripts/Battlefields: moved scripts into their respective namespace 2023-12-08 22:03:08 +01:00
Ovahlord c494ec1f87 Scripts/OutdoorPvP: moved scripts into their respective namespace 2023-12-08 21:39:47 +01:00
Ovahlord 773e12c58b Scripts/Outland: moved scripts into their respective namespace (part 2) 2023-12-08 21:27:25 +01:00
Ovahlord cf80433af8 Scripts/Outland: moved scripts into their respectice namespace (part 1) 2023-12-08 20:35:23 +01:00
Ovahlord c1ac99cc5d Scripts/Pet: moved all scripts into their own respective namespaces 2023-12-08 20:02:14 +01:00
Ovahlord 7e62a55074 Scripts/Spells: moved all scripts into their own respective namespaces 2023-12-08 19:57:27 +01:00
Ovahlord d5f1aea2d2 Scripts/World: moved all scripts into their own respective namespaces 2023-12-08 19:47:17 +01:00
Ovahlord cd107956f5 Build/CMake: disable unity builds for external dependencies as their support for unity builds was rather hacky and relied too much on random factors 2023-12-08 18:14:22 +01:00
Ovahlord 5549d82845 Scripts/Maelstrom: moved all scripts into their own zone or instance related namespace 2023-12-08 18:10:27 +01:00
Meji a601976e4c Core/Spells: Fixed target radius calculation for TARGET_DEST_*_RANDOM 2023-12-08 16:37:27 +01:00
Ovahlord 1251a781a0 CMake: added MySQL 8.2.0 to FindMySQL macro 2023-12-04 22:17:26 +01:00
Shauren bf51eda550 Core/Misc: PackedGuid refactoring to remove ByteBuffer.h include from ObjectGuid 2023-12-04 22:14:02 +01:00
Kelno b4f6bee92c Core/Items: Fixed soulbound tradeable items not being properly update once every second (#29416)
In the current code they were updated only if the difftime went above 1 second.
2023-12-04 22:09:52 +01:00
Shauren 10ff84361a Core/CrashHandler: Add a timeout to retrieving windows version from WMI
(cherry picked from commit 36a64884054f0bf34e815b62157be61c3476127a)
2023-12-04 22:09:24 +01:00
Shauren 63f06c1157 Core/Battlefield: Fixed using invalidated iterator when a player queued for wintergrasp is inside a battleground
Closes #29405
2023-12-04 22:06:32 +01:00
Gildor 679298cb59 Core/Loot: Check bank for unique loot items when determining loot roll eligibility (#29373)
# Conflicts:
#	src/server/game/Groups/Group.cpp
2023-12-04 22:06:26 +01:00
sevi 986c129bc0 Core/Quests: implement the option to cast spells upon abandoning quests (#434)
* Core/Quest: Implement a way to cast Spells on Quest Abandon.

* Core/Player: add a missing ;

* Core/Quest: moved the Abandon Spell away from a own table into quest_template_addon.
2023-12-01 16:07:39 +01:00
Ovahlord b4811b7a5d Core/Packets: used the correct opcode for RoleChangedInform packet 2023-12-01 13:19:50 +01:00
Ovahlord 133588ca60 Core/Groups: fixed a crash when rolling for items 2023-11-12 07:36:39 +01:00
Ovahlord 4d27b31b6b Core/Misc: removed dead AddonHandler code which has been moved into WorldSession a long time ago 2023-10-31 22:02:49 +01:00
Shauren 7d57ef7299 Core/Random: Changed random functions returning doubles to return floats
* They were all cast to float at use anyway
* Improves roll_chance_f performance (rand32() is now called internally by uniform_real_distribution once instead of twice)
2023-10-31 22:00:52 +01:00
Andrius Peleckas 56dc3bddd5 Core/Movement: corrected path completion logic for smartAI waypoint movement (#429) 2023-10-31 02:13:11 +01:00
Ovahlord 056248cef1 Core/Packets: converted CMSG_SET_ROLE and SMSG_ROLE_CHANGED_INFORM to packet class 2023-10-30 22:30:14 +01:00
Ovahlord 2283572243 Core/Packets: use the reserve instead of resize in PartyCommandResult packet
ref #428
2023-10-30 22:01:36 +01:00
Ovahlord e9ea6f8f06 Core/Groups: converted group roll raw pointers to smart pointers 2023-10-30 01:26:57 +01:00
Shauren 3e209a76dd Core/CrashHandler: Support retrieving windows version names for all future versions
(cherry picked from commit ca9b82fb856c8314c3e84b15bc16ffb3fe8239ba)
2023-10-30 00:36:26 +01:00
Shauren ffb78a2a30 Build: Fixed msvc version check 2023-10-30 00:36:26 +01:00
Shauren 3f6f51489c Core/Vehicles: Fixed crash happening if a vehicle despawns during handling of control vehicle aura removal
Closes #29290
2023-10-30 00:36:26 +01:00
Ovahlord 94f7ee4dda Core/Spells: check the correct effect index for Beacon of Light auras in heal predicitions 2023-10-24 22:12:55 +02:00
Shauren 388c504047 Core/Spells: Named and implemented most of SpellAttr8 2023-10-23 18:07:05 +02:00
Ovahlord 1dfe0f0974 Core/Spells: modernize a bunch of spell scripts in spell_generic 2023-10-21 21:34:19 +02:00
Ovahlord 6e5a63f165 Core/Spells: handle missing creature interrupt part of Silence, Strangulate and Arcane Torrent 2023-10-21 21:09:24 +02:00