Skip to content

Commit

Permalink
Percent spell mods should be applied on top of flat mods.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chero authored and ratkosrb committed Dec 27, 2024
1 parent e08f128 commit 320c226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Objects/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22777,7 +22777,7 @@ template <class T> T Player::ApplySpellMod(uint32 spellId, SpellModOp op, T &bas
}
}

float diff = float(basevalue) * totalpct/100.0f + totalflat;
float diff = (float(basevalue) + totalflat) * totalpct/100.0f + totalflat;
basevalue = T(float(basevalue) + diff);
return T(diff);
}
Expand Down

0 comments on commit 320c226

Please sign in to comment.