<?xml version="1.0" encoding="ISO-8859-1"?>
<document signature="Hero Lab Data">
  <thing id="thWindlord" name="Windlord" description="{b}&quot;I soar, carried on currents of elemental air.&quot;{/b}\n\n{b}Windlord Starting Feature (1st level):{/b} Your origin becomes elemental. For the purpose of effects that relate to creature origin, you are considered to be an elemental. Add Primordial to the languages you can read, write, and speak. You gain a +2 power bonus to Athletics checks and Perception checks.\n    You also gain the wind fury assault power.\n\n{b}Windlord Level 5 Feature (5th level):{/b} Whenever an effect enables you to fly, you can fly 1 additional square. Further, whenever you use your second wind, you can push each creature adjacent to you 1 square.\n\n{b}Windlord Level 10 Feature (10th level):{/b} Whenever you hit with wind fury assault, you slide the target up to a number of squares equal to your highest ability modifier." compset="Theme">
    <usesource source="HeroElemCh"/>
    <bootstrap thing="fWindlor10"></bootstrap>
    <bootstrap thing="fWindlor1"></bootstrap>
    <bootstrap thing="fWindlor5"></bootstrap>
    </thing>
  <thing id="pwWlFury" name="Wind Fury Assault" description="{b}Hit:{/b} 1[W] + highest ability modifier damage, and you can slide the target 1 square.\n{b}Effect:{/b} You can fly up to your speed. At any point during this movement, you can make the following attack.\n{b}Note:{/b} Alternatively to a Melee Weapon also a Ranged Weapon can be used.\nLevel 11: 2[W] + highest ability modifier damage.\nLevel 21: 3[W] + highest ability modifier damage." compset="Power">
    <fieldval field="pwFlavor" value="The wind carries you aloft, helping you deliver a punishing strike against a distant foe."/>
    <fieldval field="pwTarget" value="One creature"/>
    <fieldval field="pwRange1" value="or Ranged Weapon"/>
    <usesource source="HeroElemCh"/>
    <tag group="PowerUse" tag="Encounter"/>
    <tag group="PowerType" tag="Encounter"/>
    <tag group="ActionType" tag="Standard"/>
    <tag group="PowerTheme" tag="thWindlord"/>
    <tag group="EffectType" tag="Elemental"/>
    <tag group="AttackType" tag="Melee"/>
    <tag group="PowerClass" tag="ThemePower"/>
    <tag group="Damage" tag="Weapon1"/>
    <tag group="AttackVs" tag="defAC"/>
    <tag group="PowerAcc" tag="Weapon"/>
    <tag group="PowerSrc" tag="Martial"/>
    <eval phase="Traits" priority="5000"><![CDATA[var bonus as number
var attidstr as string

~ Use Int as default - this might not be necessary
bonus = #attrbonus[attrDex]
attidstr = "attrDex"

~ Find highest bonus
foreach pick in hero from Attribute
  if (eachpick.field[attrBonus].value > bonus) then
    bonus = eachpick.field[attrBonus].value
    attidstr = eachpick.idstring
  endif
nexteach

~ Use that as the damage and attack attributes
perform assignstr["DamageAttr." & attidstr]
perform assignstr["Attack." & attidstr]]]>
      <after name="Calc attrBonus"/>
      </eval>
    </thing>
  <thing id="fWindlor1" name="Windlord Starting Feature" description="Your origin becomes elemental. For the purpose of effects that relate to creature origin, you are considered to be an elemental. Add Primordial to the languages you can read, write, and speak. You gain a +2 power bonus to Athletics checks and Perception checks.\n    You also gain the wind fury assault power." compset="ThemeFeat">
    <tag group="ReqLevel" tag="1"/>
    <bootstrap thing="lanPrimord"></bootstrap>
    <bootstrap thing="pwWlFury"></bootstrap>
    <eval phase="Traits" priority="1000"><![CDATA[    #traitmodify[skAthletic,trtPower,2,""]
    #traitmodify[skPercepti,trtPower,2,""]]]>
      <before name="Calc resLeft"/>
      </eval>
    </thing>
  <thing id="fWindlor5" name="Windlord Level 5 Feature" description="Whenever an effect enables you to fly, you can fly 1 additional square. Further, whenever you use your second wind, you can push each creature adjacent to you 1 square." compset="ThemeFeat">
    <tag group="ReqLevel" tag="5"/>
    <eval phase="Traits" priority="1000"><![CDATA[    #traitmodify[skDiplomac,trtPower,2,""]
    #traitmodify[skIntimida,trtPower,2,""]]]>
      <before name="Calc resLeft"/>
      </eval>
    </thing>
  <thing id="fWindlor10" name="Windlord Level 10 Feature" description="Whenever you hit with wind fury assault, you slide the target up to a number of squares equal to your highest ability modifier." compset="ThemeFeat">
    <tag group="ReqLevel" tag="10"/>
    </thing>
  <thing id="pwWlGale" name="Protective Gale" description="{b}Effect:{/b} You activate an aura 2 that lasts until the end of your next turn. The aura is difficult terrain for enemies. You and each ally in the aura gain a +2 power bonus to AC and Reflex against ranged attacks." compset="Power">
    <fieldval field="pwFlavor" value="The wind rises up in a shell around you, hindering your enemies and deflecting their projectiles."/>
    <usesource source="HeroElemCh"/>
    <tag group="PowerUse" tag="Encounter"/>
    <tag group="AttackType" tag="Personal"/>
    <tag group="PowerType" tag="Utility"/>
    <tag group="ActionType" tag="Minor"/>
    <tag group="PowerSrc" tag="Elemental"/>
    <tag group="ReqLevel" tag="2"/>
    <tag group="PowerClass" tag="ThemePower"/>
    <tag group="PowerTheme" tag="thWindlord"/>
    <tag group="EffectType" tag="Aura"/>
    </thing>
  <thing id="pwWlWindSt" name="Wind Step" description="{b}Effect:{/b} Until the end of your next turn, you have a fly speed of 8 and can hover. When this flight ends, you descend to the ground, taking no falling damage." compset="Power">
    <fieldval field="pwFlavor" value="For a few moments, the wind carries and holds you and then places you safely down again."/>
    <usesource source="HeroElemCh"/>
    <tag group="PowerTheme" tag="thWindlord"/>
    <tag group="PowerUse" tag="Encounter"/>
    <tag group="AttackType" tag="Personal"/>
    <tag group="PowerType" tag="Utility"/>
    <tag group="PowerSrc" tag="Elemental"/>
    <tag group="ActionType" tag="Minor"/>
    <tag group="ReqLevel" tag="10"/>
    <tag group="PowerClass" tag="ThemePower"/>
    </thing>
  <thing id="pwWlBend" name="Bend Light" description="{b}Effect:{/b} The target is invisible until the end of your next turn. If the target makes an attack, the invisibility ends.\n\n{b}Sustain Minor:{/b} If the target is within 10 squares of you, the invisibility persists until the end of your next turn." compset="Power">
    <fieldval field="pwFlavor" value="Light seems to veer away from your target, and the creature abruptly vanishes."/>
    <fieldval field="pwRange1" value="10"/>
    <fieldval field="pwTarget" value="You or one creature"/>
    <usesource source="HeroElemCh"/>
    <tag group="AttackType" tag="Range"/>
    <tag group="PowerType" tag="Utility"/>
    <tag group="ActionType" tag="Standard"/>
    <tag group="PowerTheme" tag="thWindlord"/>
    <tag group="PowerSrc" tag="Elemental"/>
    <tag group="ReqLevel" tag="6"/>
    <tag group="PowerUse" tag="Daily"/>
    <tag group="EffectType" tag="Illusion"/>
    </thing>
  </document>
