<?xml version="1.0" encoding="ISO-8859-1"?>
<document signature="Hero Lab Data">
  <thing id="thSctApst" name="Secret Apostate" description="{b}Prerequisite:{/b} Drow. All secret apostates are drow who have turned against Lolth.\n\nSome Menzoberranzan drow yearn for a life free from the tyranny of the Spider Queen. These apostate drow have renounced the teachings of Lolth and embraced a philosophy based on individuality and free will. Existence for these secret apostates is dangerous, because they live in constant fear of discovery by Lolth&#146;s many spies. If their true nature is discovered, they face certain torture and death.\n    A secret apostate values freedom and choice, and each pursues personal goals independent of those dictated by other members of drow society or its dark mistress. By no stretch of the imagination does this imply most secret apostates are noble or good; they remain just as selfish and avaricious as other drow. They believe that their aspirations and desires trump those of an overbearing and controlling theocracy.\n    After renouncing Lolth, a secret apostate usually travels one of two paths. Some develop such a strong hatred for their own society that they actively work to undermine and destroy it. Specializing in elaborate schemes and intrigues, such an apostate might foment a slave rebellion or create conflict between two houses by assassinating a high-ranking official of one house and framing the other for the deed.\n    Other secret apostates become loners, seeking to avoid others of their kind and to forge their own destinies. One might travel to the surface world, only to wander through foreign lands inhabited by those who distrust or wish to destroy the drow.\n    Regardless of the path taken, a secret apostate loathes other drow as much as any surface-dweller and does not hesitate to kill members of his or her race if the occasion demands it.\n    For those who follow the arduous and lonely road of the secret apostate, it is better to risk torture and death as a free drow than to endure an existence of servitude. Let the weak-willed sheep bind themselves to the Spider Queen. A secret apostate lives a life unfettered, or dies trying.\n\n{b}Secret Apostate Starting Feature (1st level):{/b} You gain the apostate&#146;s freedom power.\n{b}Secret Apostate Level 5 Feature (5th level):{/b} You gain a +2 power bonus to Bluff checks and Stealth checks.\n{b}Secret Apostate Level 10 Feature (10th level):{/b} When a creature makes a charm attack against you, it must roll twice and use the lower result. If that creature is a drow, you also gain a +2 power bonus to the defense targeted by the attack." compset="Theme">
    <tag group="ReqRace" tag="rDrow"/>
    <bootstrap thing="fSctApst1"></bootstrap>
    <bootstrap thing="fSctApst5"></bootstrap>
    <bootstrap thing="fSctApst10"></bootstrap>
    </thing>
  <thing id="pwSctAps1" name="Apostate&apos;s Freedom" description="{b}Effect:{/b} Before the attack, you can make a saving throw against a single immobilizing effect on you that a save can end. You also shift up to 2 squares.\n\n{b}Attack:{/b} Highest ability modifier vs. AC\n{b}Hit:{/b} 1[W] + highest ability modifier damage.\n    Level 21: 2[W] + highest ability modifier damage." compset="Power">
    <fieldval field="pwFlavor" value="You break free of the bonds that hold you and move swiftly to punish your foe."/>
    <fieldval field="pwRange1" value="or Ranged Weapon"/>
    <fieldval field="pwTarget" value="One creature"/>
    <tag group="ActionType" tag="Standard"/>
    <tag group="PowerClass" tag="ThemePower"/>
    <tag group="PowerTheme" tag="thSctApst"/>
    <tag group="PowerSrc" tag="Martial"/>
    <tag group="PowerUse" tag="Encounter"/>
    <tag group="AttackType" tag="Melee"/>
    <tag group="PowerAcc" tag="Weapon"/>
    <tag group="PowerType" tag="Encounter"/>
    <tag group="Damage" tag="Weapon1"/>
    <tag group="AttackVs" tag="defAC"/>
    <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[attrInt]
attidstr = "attrInt"

~ 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="pwSctAps2" name="Caught in a Lie" description="{b}Trigger:{/b} You fail a Bluff check against an enemy.\n{b}Effect:{/b} You reroll the Bluff check and use the second result. If you still fail the check, you gain a +6 power bonus to the next initiative check you make within the next hour." compset="Power">
    <fieldval field="pwFlavor" value="You make one final effort to deceive your enemy. If that fails, you prepare to make a run for it."/>
    <tag group="PowerAcc" tag="Weapon"/>
    <tag group="PowerType" tag="Utility"/>
    <tag group="ActionType" tag="Free"/>
    <tag group="ReqLevel" tag="2"/>
    <tag group="PowerClass" tag="ThemePower"/>
    <tag group="PowerTheme" tag="thSctApst"/>
    <tag group="PowerSrc" tag="Martial"/>
    <tag group="PowerUse" tag="Daily"/>
    <tag group="AttackType" tag="Personal"/>
    </thing>
  <thing id="pwSctAps6" name="Bane of Lolth" description="{b}Effect:{/b} You enter the bane of Lolth stance. Until the stance ends, you gain a +2 power bonus to all defenses, as well as a power bonus to damage rolls against drow and spiders equal to your highest ability modifier." compset="Power">
    <fieldval field="pwFlavor" value="When facing your greatest enemies, you become a relentless force of destruction on the battlefield."/>
    <tag group="PowerAcc" tag="Weapon"/>
    <tag group="PowerType" tag="Utility"/>
    <tag group="ActionType" tag="Minor"/>
    <tag group="ReqLevel" tag="6"/>
    <tag group="PowerClass" tag="ThemePower"/>
    <tag group="PowerTheme" tag="thSctApst"/>
    <tag group="PowerSrc" tag="Martial"/>
    <tag group="EffectType" tag="Stance"/>
    <tag group="PowerUse" tag="Daily"/>
    <tag group="AttackType" tag="Personal"/>
    </thing>
  <thing id="pwSctAps10" name="Dark Retreat" description="{b}Prerequisite:{/b} You must have the cloud of darkness power.\n{b}Effect:{/b} You shift up to your speed. If your cloud of darkness power is not expended, you can use it at any point during this movement as a free action." compset="Power">
    <fieldval field="pwFlavor" value="You glide nimbly across the battlefield, leaving a patch of inky blackness in your wake."/>
    <tag group="PowerAcc" tag="Weapon"/>
    <tag group="PowerType" tag="Utility"/>
    <tag group="ActionType" tag="Move"/>
    <tag group="ReqLevel" tag="10"/>
    <tag group="PowerClass" tag="ThemePower"/>
    <tag group="PowerTheme" tag="thSctApst"/>
    <tag group="PowerSrc" tag="Martial"/>
    <tag group="PowerUse" tag="Encounter"/>
    <tag group="AttackType" tag="Personal"/>
    </thing>
  <thing id="fSctApst1" name="Secret Apostate Starting Feature" description="You gain the apostate&#146;s freedom power." compset="ThemeFeat">
    <tag group="ReqLevel" tag="1"/>
    <bootstrap thing="pwSctAps1"></bootstrap>
    </thing>
  <thing id="fSctApst5" name="Secret Apostate Level 5 Feature" description="You gain a +2 power bonus to Bluff checks and Stealth checks." compset="ThemeFeat">
    <tag group="ReqLevel" tag="5"/>
    <eval phase="Traits" priority="5000"><![CDATA[    #traitmodify[skBluff,trtPower,2,""]
    #traitmodify[skStealth,trtPower,2,""]]]></eval>
    </thing>
  <thing id="fSctApst10" name="Secret Apostate Level 10 Feature" description="When a creature makes a charm attack against you, it must roll twice and use the lower result. If that creature is a drow, you also gain a +2 power bonus to the defense targeted by the attack." compset="ThemeFeat">
    <tag group="ReqLevel" tag="10"/>
    </thing>
  </document>
