Hero Lab 4e

Herolab D&D 4e - Downloads Tracker => 4e Downloader Bug Fixes => Topic started by: Sean Abel on July 14, 2018, 09:26:27 AM

Title: War Wizard's Expertise
Post by: Sean Abel on July 14, 2018, 09:26:27 AM
This Feat War Wizard's Expertise
Prerequisite: Any arcane class
Benefit: You gain a +1 feat bonus to the attack rolls of arcane powers and basic attacks that you make with a light blade or a heavy blade. This bonus increases to +2 at 11th level and +3 at 21st level.
    Also, when you use an arcane attack power with a light blade or a heavy blade, your attack rolls take a ?5 penalty against your allies.

Published in Dragon Magazine 402.

Should add a bonus to light or heavy blade with arcane powers but it does not seem to be working:


Eval script I am using:
phase: Setup
Priority: 1000
Index 1

script:


      doneif (field[usrChosen1].ischosen = 0)

      ~work out what our attack bonus should be
      var bonus as number
      if (hero.tagvalue[Level.?] <= 14) then
        bonus = 1
      elseif (hero.tagvalue[Level.?] <= 24) then
        bonus = 2
      else
        bonus = 3
        endif

      ~add an appropriate number of 'attack bonus' tags to all implements of
      ~the appropriate type
      foreach pick in hero where "EquipIndex.? & ImplemType." & field[usrChosen1].chosen.idstring
        var i as number
        for i = 1 to bonus
          perform eachpick.assign[Helper.AttBonus]
          next
        nexteach

Timing: No timing