Skip to content

Commit

Permalink
Merge pull request #472 from bernatvadell/fix/wizary-dmg-calc
Browse files Browse the repository at this point in the history
Fix wizardry dmg calc
  • Loading branch information
sven-n authored Aug 25, 2024
2 parents 88dd257 + f237a91 commit 0525cf6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/GameLogic/AttackableExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public static async ValueTask<HitInfo> CalculateDamageAsync(this IAttacker attac
/// <param name="attributes">The attributes.</param>
/// <param name="attacker">The attacker.</param>
/// <returns>The calculated hit info.</returns>
public static HitInfo GetHitInfo(this IAttackable defender, uint damage, DamageAttributes attributes, IAttacker attacker)
public static HitInfo GetHitInfo(this IAttackable defender, uint damage, DamageAttributes attributes, IAttacker attacker)
{
var shieldBypass = Rand.NextRandomBool(attacker.Attributes[Stats.ShieldBypassChance]);
if (shieldBypass || defender.Attributes[Stats.CurrentShield] < 1)
Expand Down Expand Up @@ -486,7 +486,7 @@ private static void GetBaseDmg(this IAttacker attacker, SkillEntry? skill, out i

var skillDamage = skill.GetDamage();
minimumBaseDamage += skillDamage;
maximumBaseDamage += skillDamage;
maximumBaseDamage += skillDamage + (skillDamage / 2);

if (skill.Skill.SkillType == SkillType.Nova)
{
Expand Down Expand Up @@ -561,7 +561,7 @@ private static async ValueTask ApplyMagicEffectAsync(this IAttackable target, IA
// coordinates, we simply update the position on the client side.
if (walkSupporter is IObservable observable)
{
await observable.ForEachWorldObserverAsync<IObjectMovedPlugIn> (p => p.ObjectMovedAsync(walkSupporter, MoveType.Instant), true).ConfigureAwait(false);
await observable.ForEachWorldObserverAsync<IObjectMovedPlugIn>(p => p.ObjectMovedAsync(walkSupporter, MoveType.Instant), true).ConfigureAwait(false);
}
}
}
Expand Down

0 comments on commit 0525cf6

Please sign in to comment.