<thing id="pAdjDfBoFE" name="Defending Bone: DR 5/bludgeoning" description="The warded creature gains resistance to blows, cuts, stabs, and slashes. The subject gains DR 5/bludgeoning. Once the spell has prevented a total of 5 points of damage per caster level (maximum 50 points), it is discharged. The spell has no effect if you have damage reduction from another source." compset="InPlay">
<fieldval field="pMinimum" value="0"/>
<fieldval field="pDuration" value="1 hour/lvl or discharged"/>
<tag group="Helper" tag="AdjNoPlus" name="AdjNoPlus" abbrev="AdjNoPlus"/>
<tag group="Helper" tag="AdjSpell" name="Spell Adjustment" abbrev="Spell Adjustment"/>
<bootstrap thing="trkDefBone">
<containerreq phase="First" priority="500"><![CDATA[fieldval:pIsOn <> 0]]></containerreq>
</bootstrap>
<eval phase="Final" priority="10000" index="2"><![CDATA[~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)
hero.child[trkDefBone].field[trkMax].value += field[pAdjust].value]]></eval>
<eval phase="PreLevel" priority="10000"><![CDATA[
field[livename].text = field[thingname].text & " (" & field[pAdjust].value & " HP remaining)"
~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)
~ Apply DR to the hero
#applydr[xDamRdB, 5]]]></eval>
</thing>
<thing id="trkDefBone" name="Defending Bone" compset="Tracker">
<tag group="SpInfo" tag="spDefBone2" name="Spell info"/>
</thing>