Books: APG
Thing: Twilight Knife spell adjustment (thingid.pTwilightK)
Error:
The twilight knife weapon (thingid.wTwilightK) is not adding in the BAB of the character.
Steps:
1) Make a new level 1 fighter.
2) Give a 16 Int score so we have a bonus of +3.
3) Add spell adjustment Twilight Knife. The weapon is added to the weapon tab but it has a attack bonus of +3 instead of +4.
Fix:
Here is the line that is wrong:
Code:
~ Set attack bonus to use the new calculated value
hero.child[wTwilightK].field[wAttack].value = field[abValue].value
if changed to this it works:
Code:
~ Set attack bonus to use the new calculated value
hero.child[wTwilightK].field[wAttack].value = hero.child[Attack].field[tAtkBase].value + field[abValue].value
This way we add in the BAB and Int or Cha score to get a correct final value.
Sorry.