diff options
author | Ovahlord <dreadkiller@gmx.de> | 2025-01-26 11:43:18 +0100 |
---|---|---|
committer | Ovahlord <dreadkiller@gmx.de> | 2025-01-26 11:43:18 +0100 |
commit | a777f6768e75abf13aa85c8413a50c85158bd14d (patch) | |
tree | 74cabb6bd958ef54d5bd3cb48e3f1a6428c6a5fb /src | |
parent | ccf00f50d449ad2e3bd63c2d998e2d4c638f56e8 (diff) |
Scripts/Spells: round the damage values of Seal of Righteousness and Seal of Justice to match expected numbers and to prevent low level players from dealing no damage
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Spells/spell_paladin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Spells/spell_paladin.cpp b/src/server/scripts/Spells/spell_paladin.cpp index 756df2e18d5..8d26e7dd4f4 100644 --- a/src/server/scripts/Spells/spell_paladin.cpp +++ b/src/server/scripts/Spells/spell_paladin.cpp @@ -53,7 +53,7 @@ namespace Scripts::Spells::Paladin WeaponAttackType attType = eventInfo.GetDamageInfo()->GetAttackType(); // Damage formula according to tooltip: ${$MWS*(0.011*$AP+0.022*$SPH) - _procBasePoints = static_cast<float>(caster->GetBaseAttackTime(attType)) / 1000.0f * (0.011f * caster->GetTotalAttackPowerValue(attType) + 0.022f * caster->SpellBaseDamageBonusDone(SPELL_SCHOOL_MASK_HOLY, true)); + _procBasePoints = std::round(static_cast<float>(caster->GetBaseAttackTime(attType)) / 1000.0f * (0.011f * caster->GetTotalAttackPowerValue(attType) + 0.022f * caster->SpellBaseDamageBonusDone(SPELL_SCHOOL_MASK_HOLY, true))); return _procBasePoints > 0; } @@ -148,7 +148,7 @@ namespace Scripts::Spells::Paladin WeaponAttackType attType = eventInfo.GetDamageInfo()->GetAttackType(); // Damage formula according to tooltip: ${$MWS*(0.005*$AP+0.01*$SPH) - _procBasePoints = static_cast<float>(caster->GetBaseAttackTime(attType)) / 1000.0f * (0.005f * caster->GetTotalAttackPowerValue(attType) + 0.01f * caster->SpellBaseDamageBonusDone(SPELL_SCHOOL_MASK_HOLY, true)); + _procBasePoints = std::round(static_cast<float>(caster->GetBaseAttackTime(attType)) / 1000.0f * (0.005f * caster->GetTotalAttackPowerValue(attType) + 0.01f * caster->SpellBaseDamageBonusDone(SPELL_SCHOOL_MASK_HOLY, true))); return _procBasePoints > 0; } |