From 198ce52ebd2608ff298c20f2213e4d0a445a5a37 Mon Sep 17 00:00:00 2001 From: Baptiste Marie Date: Mon, 15 Jul 2024 02:23:12 +0200 Subject: [PATCH] Fix style procs and res illness buff/debuff value effectiveness It's supposed to be 1. Caused by 85a9847. Adding `SpellHandler.CalculateBuffDebuffEffectiveness` might not have been a good idea. --- GameServer/spells/SpellHandler.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/GameServer/spells/SpellHandler.cs b/GameServer/spells/SpellHandler.cs index a4861e79c7..b212219ed5 100644 --- a/GameServer/spells/SpellHandler.cs +++ b/GameServer/spells/SpellHandler.cs @@ -2203,9 +2203,7 @@ protected double CalculateBuffDebuffEffectiveness() { double effectiveness; - if (SpellLine.KeyName is GlobalSpellsLines.Potions_Effects or GlobalSpellsLines.Item_Effects) - effectiveness = 1.0; - else if (Spell.Level <= 0) + if (SpellLine.KeyName is GlobalSpellsLines.Potions_Effects or GlobalSpellsLines.Item_Effects or GlobalSpellsLines.Combat_Styles_Effect or GlobalSpellsLines.Realm_Spells || Spell.Level <= 0) effectiveness = 1.0; else if (Spell.IsBuff) {