<?xml version="1.0" ?>
<spellcast>
<config RequireVersion="2.22" />
<sets>
<group name="Sam" default="yes">
<set name="Idle">
<head>Askar Zucchetto</head>
<neck>Justice Torque</neck>
<lear>Bushinomimi</lear>
<rear>Brutal Earring</rear>
<body>Askar Korazin</body>
<hands>Saotome Kote</hands>
<lring>Woodsman Ring</lring>
<rring>Rajas Ring</rring>
<back>Amemet Mantle +1</back>
<waist>Swift Belt</waist>
<legs>Byakko's Haidate</legs>
<feet>Fuma Sune-ate</feet>
</set>
<set name="fight" BaseSet="idle">
<body>Askar Korazin</body>
<hands>Dusk Gloves</hands>
<back>Amemet Mantle +1</back>
</set>
<set name="Tachi: Gekko" BaseSet="idle">
<neck>Aqua Gorget</neck>
<body>Askar Korazin</body>
<hands>Palla's Bracelets</hands>
<lring>Ruby Ring</lring>
<back>Smilod. Mantle +1</back>
<waist>Warwolf Belt</waist>
<legs>Shura Haidate</legs>
<feet>Askar Gambieras</feet>
</set>
<set name="Tachi: Kasha" BaseSet="idle">
<neck>Shadow Gorget</neck>
<body>Kirin's Osode</body>
<hands>Palla's Bracelets</hands>
<lring>Ruby Ring</lring>
<back>Smilod. Mantle +1</back>
<waist>Warwolf Belt</waist>
<legs>Shura Haidate</legs>
<feet>Askar Gambieras</feet>
</set>
<set name="Tachi: Rana" BaseSet="idle|Tachi: Kasha">
<body>Haubergeon</body>
</set>
<set name="Tachi: Yukikaze" BaseSet="idle">
<body>Kirin's Osode</body>
<hands>Palla's Bracelets</hands>
<lring>Ruby Ring</lring>
<back>Smilod. Mantle +1</back>
<waist>Warwolf Belt</waist>
<legs>Shura Haidate</legs>
<feet>Askar Gambieras</feet>
</set>
<set name="Meditate">
<hands>Saotome Kote</hands>
<head>Myn. Kabuto +1</head>
</set>
</group>
</sets>
<rules>
<action type="equip" when="Idle" set="Idle" />
<action type="equip" when="Engaged" set="fight" />
<if Spell="Meditate">
<action type="castdelay" delay=".2" />
<action type="Equip" when="Precast" set="Meditate" />
<action type="Equip" when="Aftercast" set="fight" />
</if>
<if mode="And" CommandPrefix="/ws|/weaponskill" NotTPLT="100">
<if Spell="Tachi: Gekko">
<action type="castdelay" delay=".2" />
<action type="Equip" when="Precast" set="Tachi: Gekko" />
<action type="Equip" when="Aftercast" set="fight" />
</if>
<elseif Spell="Tachi: Kasha">
<action type="castdelay" delay=".2" />
<action type="Equip" when="Precast" set="Tachi: Kasha" />
<action type="Equip" when="Aftercast" set="fight" />
</elseif>
<elseif Spell="Tachi: Rana">
<action type="castdelay" delay=".2" />
<action type="Equip" when="Precast" set="Tachi: Rana" />
<action type="Equip" when="Aftercast" set="fight" />
</elseif>
<elseif Spell="Tachi: Yukikaze">
<action type="castdelay" delay=".2" />
<action type="Equip" when="Precast" set="Tachi: Yukikaze" />
<action type="Equip" when="Aftercast" set="fight" />
</elseif>
</if>
<else>
<!-- auto cancel sneak/utsu/stoneskin/blink when recasting them. Requires Cancel Plugin -->
<if Spell="Sneak" BuffActive="Sneak" SpellTargetType="Self">
<action type="command" when="midcast">cancel 71</action>
<action type="midcastdelay" delay="1.8" />
</if>
<if spell="Utsusemi: Ichi" BuffActive="Copy Image">
<action type="midcastdelay" delay="3.0" />
<action type="Command" when="midcast">cancel 66</action>
</if>
<if spell="Monomi: Ichi">
<action type="midcastdelay" delay="2.5" />
<action type="Command" when="midcast">cancel 71</action>
</if>
<elseif Spell="Stoneskin" BuffActive="Stoneskin">
<action type="command" when="midcast">cancel 37</action>
<action type="midcastdelay" delay="4.8" />
</elseif>
<elseif Spell="Blink" BuffActive="Blink">
<action type="command" when="midcast">cancel 36</action>
<action type="midcastdelay" delay="4.5" />
</elseif>
<!-- finally, equip our staff! -->
<action type="equip" when="midcast">
<main>$%SpellElementStaff</main>
</action>
</else>
</rules>
</spellcast>