Commit Graph
18627 Commits
Author SHA1 Message Date
Ovahlord bf669937be Core/Spells: SPELL_AURA_MOD_FACTION will now apply UNIT_FLAG2_IGNORE_REPUTATION to all targets instead of players only 2022-01-17 22:11:17 +01:00
Ovahlord db769f5e52 Core/Units: safeguard Unit::CancelSpellMissiles against triggering an assert in BasicEvent::ScheduleAbort when trying to cancel spell events that already are about to the aborted 2022-01-17 10:59:41 +01:00
Ovahlord 03cbd6fe92 Core/Movement: yoinked the movement direction calculation from master's TARGET_DEST_CASTER_MOVEMENT_DIRECTION implementation
thx Shauren for the headsup
2022-01-16 20:40:19 +01:00
Ovahlord edcc11423b warning fix 2022-01-16 19:35:37 +01:00
Shauren a06b3cea3c Core/Spells: Fixed caster unit validation for players that have charmed (not possessed) units 2022-01-16 18:45:07 +01:00
Ovahlord 9892d239a8 Core/Spells: renamed SPELL_ATTR5_INCLUDE_MELEE_RANGE to SPELL_ATTR5_TREAT_AS_AREA_EFFECT and handle the attribute in SpellInfo::IsAffectingArea 2022-01-16 11:44:49 +01:00
Ovahlord d5fa8c3e10 Core/Spells: Hunter Pets will now correctly inherit 22% of the player's attackpower instead of 42.5% 2022-01-16 11:32:47 +01:00
Ovahlord d17ceb70d5 Core/Movement: add a helper to obtain movement direction angles from player movement 2022-01-16 11:31:14 +01:00
ModoX 83456ed853 Core/Quests: Set quest slot earlier when abandoning a quest 2022-01-14 21:40:27 +01:00
Ovahlord 319ef144b4 Core/Spells: SPELL_ATTR0_CU_CONE_LINE is no longer taking a target's combatreach into account to avoid being falsely hit when not even inside of the cone 2022-01-14 21:37:08 +01:00
Ovahlord 86d8443732 Core/Spells: further fixups for spell focusing and channel target selection
* SPELL_ATTR1_SELF_CHANNELED is now also considering targets when required
2022-01-14 21:36:13 +01:00
Ovahlord b242ca48ed Scripts/BH: fixed a crash in Occu'thar's target selection script for Focused Fire 2022-01-14 18:46:43 +01:00
Ovahlord 520b53a5e0 Core/Spells: added a helper to determine whenever a periodic aura should roll over its duration on refresh
* introduce another custom spell attribute to grant full control over when or when not to roll over ticks
2022-01-14 18:46:03 +01:00
Ovahlord 19e28e2077 Core/Phasing: fixed a typo in b1f16bceb0 2022-01-13 22:00:44 +01:00
Ovahlord 0aa9129c3b Core/Spells: let all periodic effects roll over their timers on refresh
* renamed SPELL_ATTR0_CU_DONT_RESET_PERIODIC to SPELL_ATTR0_CU_RESET_PERIODIC_TIMER and changed functionality to prevent described behavior from happening
2022-01-12 18:51:21 +01:00
Ovahlord 1149fbce3d Core/Spells: revert an unwanted change that sneaked into 9085526f9a 2022-01-12 17:57:41 +01:00
Ovahlord 9085526f9a Core/Spells: define and implement SPELL_ATTR8_PERIODIC_CAN_CRIT
* SPELL_ATTR8_DONT_RESET_PERIODIC_TIMER has been moved to a custom attribute (SPELL_ATTR0_CU_DONT_RESET_PERIODIC)
2022-01-12 17:33:34 +01:00
Shauren 6252bd9fa8 Core/Groups: Fixed crash in loot rolls happening when looted object despawns before roll expires 2022-01-12 15:56:48 +01:00
Ovahlord cd365a880d warning fix 2022-01-10 01:57:27 +01:00
Ovahlord c95b81063c Scripts/BWD: beffd30076 followup 2022-01-10 01:50:51 +01:00
Ovahlord ff753eb9ac Scripts/HoO: make sure that Temple Guardian Anhuur's position is up to date when he is about to teleport to avoid him from rubberbanding back to his pre-teleport position 2022-01-10 01:38:42 +01:00
Ovahlord beffd30076 Scripts/BWD: moved Atramede's Reverberating Flame movement behavior to a own AI script and pick a new follow target when his current target dies 2022-01-09 22:29:13 +01:00
Ovahlord 3ff8840fe2 Core/Items: ported several enchantment flag implementations from master branch 2022-01-09 18:15:38 +01:00
Ovahlord 009e1dba37 Core/Spells: coefficient scaling will no longer affect attack power multipliers 2022-01-09 15:09:21 +01:00
Ovahlord 04df69a8ed Core/Guids: optimize guild recipe querying by avoiding unnecessary copys of profession data elements 2022-01-09 15:08:02 +01:00
Ovahlord 2161908280 Core/Spells: partially implement Dancing Rune Weapon and handle Blood DK t12 4p bonus 2022-01-05 23:43:43 +01:00
Ovahlord e84bb6e6ba Core/Units: no longer send debug hitInfo flags as these have no clientside effect at all
closes #261
2022-01-05 22:35:30 +01:00
Ovahlord 7dc29ee9c1 Core/Spells: skip unnecessary coefficient scaling lookups when no coefficient is provided 2022-01-05 22:32:05 +01:00
Ovahlord 2dc07876ea Core/Spells: implement spellpower and attackpower coefficient scaling 2022-01-05 20:19:06 +01:00
Ovahlord d1c006d4dd Core/Spells: Judgement will now also benefit from Two-Handed Weapon Specialization
* though it's nowhere mentioned in the tooltips or effects, according to several addons and logs Judgement indeed benefits from its bonus
2022-01-05 15:04:54 +01:00
Ovahlord 01d0a0b09c Core/Spells: use the correct getter for school mask 2022-01-05 15:03:42 +01:00
Ovahlord fa378dc870 Core/Spells: Unit::MeleeDamageBonusTaken will now use the SchoolMask of melee attack spells when spellInfo is provided
ref https://github.com/TrinityCore/TrinityCore/issues/27523
2022-01-05 13:11:58 +01:00
Shauren 267cd04e57 Core/Time: Remove artificially high minimal update intervals
(cherry picked from commit 3a67e376811743be208da4aab8a9e452e1ae637e)
2022-01-04 19:23:46 +01:00
Ovahlord 7f62463f36 Core/Movement: no longer blindy rely on ack messages to change movementstatus values as the client can and will sometimes ignore packets such as when receiving movement packets while not being sent out via update object (changing maps via teleport) 2022-01-04 15:04:49 +01:00
Ovahlord 8f2bcf3716 fixed build 2022-01-04 13:05:19 +01:00
Ovahlord 7b3f163ef6 Core/Movement: no longer override a player's movementInfo with the info returned from dismissing controlled vehicles as these do not belong to him. This fixes players getting stuck in a disable gravity state when exiting vehicle seats that have disabled a player's gravity 2022-01-04 12:59:55 +01:00
Ovahlord 5a66a295ee Scripts/TSC: corrected Force Grip channel behavior and fixed an edge case in which the player remains stuck in the air when Force Grip ends.
Thx @roc13x for the headsup.

closes #311
2022-01-04 11:50:22 +01:00
Ovahlord 91516e155f Core/Units: ported another crashfix from TC 2022-01-04 11:48:42 +01:00
Ovahlord d5db24c3d8 Scripts/Tol Barad: fixed quest 'Magnets, how do they work?'
* fixed some visuals at the alliance baradin base camp
2022-01-01 23:11:54 +01:00
Shauren 8acf90d115 Core/Units: Sync ProcessTerrainStatusUpdate code with master branch 2022-01-01 16:49:48 +01:00
Ovahlord 39da927196 Scripts/Misc: resolved cherrypick issues and regressions 2021-12-31 15:53:53 +01:00
Shauren a322e4eb37 Core/Spells: Implemented target 124 TARGET_UNIT_TARGET_TAP_LIST 2021-12-30 20:16:33 +01:00
Shauren 383e7c1315 Core/Spells: Implemented target 121 TARGET_CORPSE_TARGET_ALLY 2021-12-30 20:14:29 +01:00
Ovahlord 8bb9376aa2 Core/Spells: Rename targets 110 to TARGET_UNIT_CONE_CASTER_TO_DEST_ENTRY 2021-12-30 20:12:02 +01:00
Shauren 58d257c7a5 Core/Spells: Targets enum formatting 2021-12-30 20:11:01 +01:00
Shauren 84c7434b8b Core/Spells: Rename targets 108 and 109 to include CASTER_TO_DEST wording 2021-12-30 20:10:09 +01:00
Shauren 5fcf5bdee5 Core/Spells: Implemented target 107 TARGET_DEST_NEARBY_ENTRY_2 (the same as target 46) 2021-12-30 20:08:10 +01:00
Shauren adfc991f02 Core/Spells: Use orientation given in destTarget instead of always taking casters orientation for all effect types 2021-12-30 20:06:10 +01:00
Shauren 28f79765ca Core/Spells: Implemented target 62 TARGET_DEST_CASTER_GROUND (the same as target 125) 2021-12-30 20:00:42 +01:00
Shauren 7ef17f416c Core/Spells: Rename TARGET_UNIT_CONE_ENEMY_54 to TARGET_UNIT_CONE_180_DEG_ENEMY and add 180 degree fallback for this target type 2021-12-30 19:57:50 +01:00