Skip to content

Commit

Permalink
Add DamageIncrease method overload to support DamageBonus parameter (#…
Browse files Browse the repository at this point in the history
…774)

* Add DamageIncrease method overload to support DamageBonus parameter

* Update Effect.Create.cs

---------

Co-authored-by: Jhett Black <10942655+jhett12321@users.noreply.github.com>
  • Loading branch information
zeroark and jhett12321 authored Sep 9, 2024
1 parent b7999bd commit f658a6e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions NWN.Anvil/src/main/API/EngineStructures/Effect.Create.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,16 @@ public static Effect DamageIncrease(int bonus, DamageType damageType = DamageTyp
return NWScript.EffectDamageIncrease(bonus, (int)damageType)!;
}

/// <summary>
/// Creates an effect that applies a bonus to a specified damage type.
/// </summary>
/// <param name="bonus">The damage bonus to apply.</param>
/// <param name="damageType">The damage type to apply the bonus to.</param>
public static Effect DamageIncrease(DamageBonus bonus, DamageType damageType = DamageType.Magical)
{
return NWScript.EffectDamageIncrease((int)bonus, (int)damageType)!;
}

/// <summary>
/// Creates an effect that resists a constant amount of damage from a physical attack with a certain magical power.
/// </summary>
Expand Down

0 comments on commit f658a6e

Please sign in to comment.