View Single Post
Provos
Senior Member
 
Join Date: Mar 2011
Location: USA
Posts: 383

Old February 19th, 2020, 04:15 AM
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)
Provos is offline   #5 Reply With Quote