Commit Graph
1996 Commits
Author SHA1 Message Date
Ovahlord e7ba484fcf Core/Units: reworked creature power regeneration handling
* players and creatures now share the same power regeneration regeneration function
* UpdatePowerRegeneration is now virtual and handles creature and player specific formulas individually
* handle update field flag UF_FLAG_UNIT_ALL to handle UNIT_FIELD_POWER_REGEN_FLAT_MODIFIER and UNIT_FIELD_POWER_REGEN_INTERRUPTED_FLAT_MODIFIER for creatures as well
2020-04-27 14:20:33 +02:00
Ovahlord 153546acba Core/Units: do not send owner based update fields for units that only have a creator guild but no summoner guid 2020-04-26 16:56:38 +02:00
Ovahlord b653f2f819 Core/Units: ported power type updates from master branch 2020-04-22 03:13:02 +02:00
Ovahlord c00858d969 Core/Creatures: removed hacks from SetMinion helper 2020-04-22 00:21:50 +02:00
Ovahlord d30c811d9e Core/Creatures: reworked tempoary summon creation
* all stats and values will now be set before summons are getting added to map
* cleaned up summon spell effect handler to reduce duplicade code
* summoner guids will no longer be set for every minion and correctly handle assigning creator guids instead. These values will serve as fallback guid if there is no summoner guid
* friendly tempsummons will now inherit the guild data of their player and pass them on to further allied summons. This fixes guild specific visuals for creatures such as Guild Battle Standards and Guild Heralds.

Todo: check for regressions
2020-04-22 00:20:18 +02:00
Ovahlord 29aac17e2c Core/Packets: removed unused field from attacker state update field 2020-04-20 22:03:23 +02:00
Ovahlord 4daf6d5f23 Core/Packets: converted SMSG_ATTACKER_STATE_UPDATE to packet class 2020-04-20 19:09:29 +02:00
Ovahlord 937df192f6 Core/Packets: converted threat packets to packet class and fixed threat amount sent in them 2020-04-20 10:45:49 +02:00
Ovahlord 206cd7d6d7 Core/Units: std::floor for rounding rage gains 2020-04-19 23:19:59 +02:00
Ovahlord c537a2658a Core/Units: reworked power regeneration for players
* use a reversed client function to get the power regeneration rate for all types of powers
* unified all player based regeneration updates into a single statsystem helper
* cleaned up unnecessary regeneration timers
* implement power regeneration for alternative powers
* corrected rage gain numbers based on simulationcraft formulas
2020-04-19 22:53:29 +02:00
Shauren cb6ce1302b Core/Misc: Defined new summon properties titles 2020-04-07 18:33:13 +02:00
Ovahlord b5bdf61e5f Core/Packets: converted SMSG_DURABILITY_DAMAGE_DEATH, SMSG_PLAY_ONE_SHOT_ANIM_KIT, SMSG_SET_AI_ANIM_KIT, SMSG_SET_MOVEMENT_ANIM_KIT and SMSG_SET_MELEE_ANIM_KIT to packet class 2020-04-07 16:29:30 +02:00
Ovahlord d31f19265d Core/Objects:
* store liquid status lookups from UpdatePositionData in a member and draw liquid status information from it instead of doing extra vmap lookups. This also fixes collision height based liquid status states which was leading to false positive movement speed selection for creatures
* remove redundant IsUnderWater helper override from player class as our object based liquid status also considers collision height
2020-04-05 20:41:15 +02:00
Ovahlord c7f5732571 Core/Units: corrected a warning fix for gcc build 2020-04-05 00:10:53 +02:00
Ovahlord 77cf10ee5f Core/Misc: fixed gcc warnings 2020-04-04 20:20:41 +02:00
Ovahlord fe4ff01e30 Core/Movement: converted SMSG_MOVE_KNOCK_BACK to packet class 2020-03-29 19:12:32 +02:00
NoName b2af17eb4a Core/Spell: Proper SPELL_EFFECT_PULL_TOWARDS_DEST implementation for players
* Core/Spell: SPELL_EFFECT_PULL_TOWARDS correction
2020-03-29 16:23:47 +02:00
Ovahlord c9961e6a94 Core/Movement: rewrite follow movement 2020-03-27 18:59:16 +01:00
Ovahlord 5e5ec5c70f Core/Spells: SPELL_AURA_OVERRIDE_AUTOATTACK_WITH_MELEE_SPELL will now pull its spell ids for off-attacks from basepoints instead of misc values since there is only one case that uses it in Baleroc's encounter 2020-03-20 11:31:38 +01:00
Ovahlord f1f00c3ec3 Core/Datastores: refactor DBC storage helpers to use a class and fixed no pch build 2020-03-18 15:24:25 +01:00
Ovahlord 478fbe9fc1 Core/Spells: implement SPELL_AURA_OVERRIDE_AUTOATTACK_WITH_MELEE_SPELL (#23467) 2020-03-16 20:25:57 +01:00
Ovahlord 091e337574 Core/Spells: SPELL_AURA_MOD_PACIFY will no longer block victim updates and return false in Attack method 2020-02-23 22:29:32 +01:00
Ovahlord e47b9c8599 Core/Movement: converted SMSG_MOVE_SET_COLLISION_HEIGHT to packet class and handle reason bits to match sniff behaivior 2020-02-23 10:59:57 +01:00
Ovahlord d9b854ad59 Core/Datastores: backported hotfix system implementation 2020-02-21 23:13:38 +01:00
Ovahlord a5e56171af Core/Units: added pointer check in SetMinion to protect the core against old/bad coding and improved codestyle in function 2020-02-17 00:18:32 +01:00
Ovahlord a5adc77f04 Core/Auras: moved SPELL_AURA_MOD_MELEE_DAMAGE_FROM_CASTER handling to MeleeDamageBonusDone 2020-02-05 08:42:29 +01:00
Ovahlord b95d367f8d Core/Auras: define and implement SPELL_AURA_MOD_MELEE_DAMAGE_FROM_CASTER 2020-02-04 22:34:44 +01:00
jackpoz 183789053e Core/Misc: Fix GCC 8 warnings 2020-01-31 21:19:25 +01:00
Ovahlord df4018b10d Core/Vehicles: use pointers instead of tempoary copies 2020-01-28 13:29:12 +01:00
Ovahlord dfaa49c87b Core/Vehicles: expand vehicle seat addon table implementation to support passenger exit options 2020-01-28 11:09:05 +01:00
Ovahlord a72411241d Core/Players: simplified mount capability update checks and removed a unneeded call uppon changing liquid status 2020-01-27 09:49:26 +01:00
Ovahlord fcb79fee07 Core/Datastores: updated DBC structure names to generated member format 2020-01-25 12:36:32 +01:00
Ovahlord cf430ce61a Core/Movement: merge 335 feedback changes for interrupt handing 2020-01-22 20:42:02 +01:00
Ovahlord 7f3a2084d1 Core/Movement: restore strict aura interrupt behaivior for players 2020-01-22 09:47:39 +01:00
Ovahlord 221ed21ed2 Core/Units: applied feedback from TC pull request for aura interrupt checkups 2020-01-18 16:13:29 +01:00
Ovahlord b210320df0 Core/Spells: unify successful spell cast and interrupt AI hooks into one helper with different cast results to reduce duplicate code
* fixed position update logic that was responsible for interrupting channeled spells because of a missing movement generator update call that was kicking in after the interrupt already happened
* improved Baron Ashburys timer layout
2020-01-16 05:01:39 +01:00
Ovahlord 7760d95962 Core/Creatures: backported trainer update and skill initialization 2020-01-12 23:53:35 +01:00
jackpoz 131986d1c2 Core/Misc: Replace time(nullptr) with GameTime::GetGameTime() 2020-01-11 03:30:41 +01:00
Aokromes d6d3f06f06 New year 2020-01-04 18:32:38 +01:00
Ovahlord 9f39c218db Core/Movement: backported a movemenet slot check to prevent PauseMovement from stopping movements that it's not suposed to stop 2020-01-04 12:17:22 +01:00
Giacomo Pozzoni ccb00b971b Fix fleeing speed to 66% run speed 2020-01-03 21:45:40 +01:00
funjoker 6c56916b29 Misc: Update copyright information
Happy new year
2020-01-01 18:47:28 +01:00
Giacomo Pozzoni dfaf4f57a6 Core/Movement: Fix wrong orientation set when pausing movement 2019-12-30 18:54:28 +01:00
Ovahlord 046a471da2 It's getting late 2019-12-13 23:52:07 +01:00
Ovahlord 10a7b29b4d Core/Units: removed a unneeded player type check 2019-12-13 23:35:40 +01:00
Ovahlord 108316ba28 Core/Creatures: added helper to check if a class trainer can train a player and use it in various places to get rid of multiple checks 2019-12-13 17:49:16 +01:00
Ovahlord f3b7b536f4 Core/Units: trainer classes that cannot train the player will no longer show their icon on the mini map 2019-12-12 21:09:17 +01:00
Ovahlord 0cdddca210 Core/Spells: corrected haste rune cooldown reduction behaivior
* the haste regeneration modifier will now act multiplicative on the base regeneration rate rather than modifying it directly
* renamed some functions for clarification
2019-12-10 15:23:43 +01:00
Ovahlord d38dfce011 Core/Pets: corrected formulars for minion and pet damage values for good this time
* data is based on dr. damage and simulationcraft
2019-12-10 00:12:26 +01:00
Ovahlord abb62cc76f Core/Spells: reverted proc behaivior for pets and fixed applying spell mods for hunter pets and minions 2019-12-09 16:10:54 +01:00