Skip to content

Commit

Permalink
Use correct method/field for base attack bonus. (#802)
Browse files Browse the repository at this point in the history
* Use correct method/field for base attack bonus.

* Remove redundant cast.
  • Loading branch information
jhett12321 authored Jan 28, 2025
1 parent 652f653 commit d258f8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions NWN.Anvil/src/main/API/Objects/NwCreature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ public byte BaseArmorArcaneSpellFailure
/// <summary>
/// Gets or sets the Base Attack Bonus for this creature.
/// </summary>
public byte BaseAttackBonus
public int BaseAttackBonus
{
get => Creature.m_pStats.m_nBaseAttackBonus;
set => Creature.m_pStats.m_nBaseAttackBonus = value;
get => Creature.m_pStats.GetBaseAttackBonus(false.ToInt());
set => Creature.m_pStats.m_nBaseAttackBonus = checked((byte)value);
}

/// <summary>
Expand Down

0 comments on commit d258f8d

Please sign in to comment.