fix: Fixes divine fury (#1290)
This commit is contained in:
parent
81839beedd
commit
1745faa28c
4 changed files with 125 additions and 77 deletions
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue