From e46eb321fd668f699e38d655a5c1c426e8c1ab4c Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 27 Feb 2022 23:18:29 -0500 Subject: [PATCH] Core/Spells: SPELL_AURA_MOD_MELEE_RANGED_HASTE should be negative if Basepoints are negative Port From (https://github.com/TrinityCore/TrinityCore/commit/cc6e616e6106e8eb168f528c74f98afb01a6b482) --- Source/Game/Spells/SpellInfo.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Game/Spells/SpellInfo.cs b/Source/Game/Spells/SpellInfo.cs index 75d4eb77d..a6e438a6d 100644 --- a/Source/Game/Spells/SpellInfo.cs +++ b/Source/Game/Spells/SpellInfo.cs @@ -3233,7 +3233,7 @@ namespace Game.Spells var unitCondition = CliDB.UnitConditionStorage.LookupByKey(visual.CasterUnitConditionID); if (unitCondition != null) - if (!caster || !caster.IsUnit() || !ConditionManager.IsUnitMeetingCondition(caster.ToUnit(), viewer.ToUnit(), unitCondition)) + if (!caster || !caster.IsUnit() || !ConditionManager.IsUnitMeetingCondition(caster.ToUnit(), viewer?.ToUnit(), unitCondition)) continue; return visual.Id; @@ -3517,6 +3517,7 @@ namespace Game.Spells case AuraType.ModSpellHitChance: case AuraType.ModSpellCritChance: case AuraType.ModRangedHaste: + case AuraType.ModMeleeRangedHaste: case AuraType.ModCastingSpeedNotStack: case AuraType.HasteSpells: case AuraType.ModResistance: