fix: Fixes divine fury (#1290)

This commit is contained in:
Kamron Batman 2022-12-04 12:39:30 -08:00 committed by GitHub
parent 81839beedd
commit 1745faa28c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 125 additions and 77 deletions

View file

@ -1244,10 +1244,7 @@ namespace Server.Items
*/
var bonus = AosAttributes.GetValue(m, AosAttribute.WeaponSpeed);
if (DivineFurySpell.UnderEffect(m))
{
bonus += 10;
}
bonus += DivineFurySpell.GetWeaponSpeed(m);
// Bonus granted by successful use of Honorable Execution.
bonus += HonorableExecution.GetSwingBonus(m);
@ -2430,10 +2427,7 @@ namespace Server.Items
}
// Divine Fury gives a +10% bonus to damage.
if (DivineFurySpell.UnderEffect(attacker))
{
damageBonus += 10;
}
damageBonus += DivineFurySpell.GetDamageBonus(attacker);
var defenseMasteryMalus = 0;