Spells: Crafter's Curse;
Crafter's Fortune
Code:
<thing id="pS2CraftCu" name="Crafter’s Curse" description="The target of {I}crafter’s curse{/i} takes a -5 penalty on all Craft skill checks while the spell lasts." compset="InPlay">
<fieldval field="pMinimum" value="-5"/>
<fieldval field="pMaximum" value="-5"/>
<fieldval field="pDuration" value="1 day/level"/>
<usesource source="APG"/>
<tag group="Helper" tag="AdjSpell" name="Spell Adjustment" abbrev="Spell Adjustment"/>
<eval phase="PostLevel" priority="10000"><![CDATA[
~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)
~ Give a penalty to all Craft Skills
foreach pick in hero from BaseSkill where "Helper.SkCatCraft"
eachpick.field[Penalty].value += field[pAdjust].value
nexteach]]></eval>
</thing>
<thing id="pS2CraftFo" name="Crafter’s Fortune" description="The target is struck by inspiration and gains a +5 luck bonus on its next Craft skill check." compset="InPlay">
<fieldval field="pMinimum" value="5"/>
<fieldval field="pMaximum" value="5"/>
<fieldval field="pDuration" value="1 day/level"/>
<usesource source="APG"/>
<tag group="Helper" tag="AdjSpell" name="Spell Adjustment" abbrev="Spell Adjustment"/>
<eval phase="PostLevel" priority="10000"><![CDATA[
~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)
~ Give a Luck bonus to all Craft Skills
foreach pick in hero from BaseSkill where "Helper.SkCatCraft"
#applybonus[BonLuck,eachpick,field[pAdjust].value]
nexteach]]></eval>
</thing>