<thing id="isSCMStfFrt" name="Staff of Frost" description="You have resistance to cold damage while you hold this staff.{br}The staff has 10 charges. While holding it, you can use an action to expend 1 or more of its charges to cast one of the following spells from it, using your spell save DC: cone of cold (5 charges), fog cloud (1 charge), ice storm (4 charges), or wall of ice (4 charges).{br}The staff regains 1d6 + 4 expended charges daily at dawn. If you expend the last charge, roll a d20. On a 1, the staff turns to water and is destroyed." compset="Staff">
<fieldval field="miAttunTxt" value="requires attunement by a druid, sorcerer, warlock, or wizard"/>
<fieldval field="trkMax" value="10"/>
<tag group="ItemRarity" tag="VeryRare" name="Very Rare" abbrev="Very Rare"/>
<tag group="Usage" tag="Charges" name=" charges" abbrev=" charges"/>
<tag group="Helper" tag="NeedAttune" name="Requires Attunement" abbrev="Requires Attunement"/>
<tag group="Helper" tag="ShowSpec" name="Show Spec" abbrev="Show Spec"/>
<bootstrap thing="spConeCold">
<autotag group="ChargeUse" tag="5"/>
<autotag group="Helper" tag="ItemSpell"/>
<autotag group="Helper" tag="StaffSpell"/>
<autotag group="Usage" tag="Charges"/>
</bootstrap>
<bootstrap thing="spFogClou">
<autotag group="ChargeUse" tag="1"/>
<autotag group="Helper" tag="ItemSpell"/>
<autotag group="Helper" tag="StaffSpell"/>
<autotag group="Usage" tag="Charges"/>
</bootstrap>
<bootstrap thing="spIceStor">
<autotag group="ChargeUse" tag="4"/>
<autotag group="Helper" tag="ItemSpell"/>
<autotag group="Helper" tag="StaffSpell"/>
<autotag group="Usage" tag="Charges"/>
</bootstrap>
<bootstrap thing="spWallIce">
<autotag group="ChargeUse" tag="4"/>
<autotag group="Helper" tag="ItemSpell"/>
<autotag group="Helper" tag="StaffSpell"/>
<autotag group="Usage" tag="Charges"/>
</bootstrap>
<eval phase="PreLevel" priority="5000">doneif (field[gIsEquip].value = 0)
doneif (field[gIsAttuned].value = 0)
perform hero.assign[DamageRes.dtCold]</eval>
</thing>
<preclude id="stFrost" source="5eDMGCP" />