I updated my Knowledge Devotion script
You are affected by a Knowledge Devotion (Ex) ability.
Calculated effects: Insight bonus to attack and damage rolls.
Code:
~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)
~ Add a Insight bonus to our attack
#applybonus[BonInsight, hero.child[Attack], 1]
~ Add a bonus to our damage
~ Add to our damage bonus
hero.child[Damage].field[tDamBonus].value = maximum(hero.child[Damage].field[tDamBonus].value, field[pAdjust].value)