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

@ -217,10 +217,7 @@ namespace Server.Items
double attackValue = AosAttributes.GetValue(attacker, AosAttribute.AttackChance);
if (DivineFurySpell.UnderEffect(attacker))
{
attackValue += 10;
}
attackValue += DivineFurySpell.GetAttackBonus(attacker);
if (AnimalForm.UnderTransformation(attacker, typeof(GreyWolf)) ||
AnimalForm.UnderTransformation(attacker, typeof(BakeKitsune)))
@ -242,10 +239,7 @@ namespace Server.Items
double defenseValue = AosAttributes.GetValue(defender, AosAttribute.DefendChance);
if (DivineFurySpell.UnderEffect(defender))
{
defenseValue -= 20;
}
defenseValue -= DivineFurySpell.GetDefendMalus(defender);
if (HitLower.IsUnderDefenseEffect(defender))
{