Skip to content

Commit

Permalink
Fix style procs and res illness buff/debuff value effectiveness
Browse files Browse the repository at this point in the history
It's supposed to be 1.
Caused by 85a9847.
Adding `SpellHandler.CalculateBuffDebuffEffectiveness` might not have been a good idea.
  • Loading branch information
bm01 committed Jul 15, 2024
1 parent 85a9847 commit 198ce52
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions GameServer/spells/SpellHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 198ce52

Please sign in to comment.