Method GetAttackBonus
GetAttackBonus(bool, bool, bool, bool)
Gets the creature's highest attack bonus based on its own stats.
AB vs. Type and +AB on Gauntlets are excluded.
public int GetAttackBonus(bool isMelee = false, bool isTouchAttack = false, bool isOffHand = false, bool includeBaseAttackBonus = true)
Parameters
isMeleeboolTRUE: Get Melee/Unarmed Attack Bonus, FALSE: Get Ranged Attack Bonus
isTouchAttackboolIf the attack was a touch attack.
isOffHandboolIf the attack was a touch attack.
includeBaseAttackBonusboolIf the attack was with the offhand.
Returns
- int
The highest attack bonus.