The main feature of this XML is, it should correctly change the command when continuously hitting your Phantom Roll macro. For example, when you hit your Corsair's Roll macro, the second time you hit the macro it will double up.
<?xml version="1.0" ?>
<spellcast>
<config
Debug="true"
HideErrors="false"
FishingSet="fishing"
/>
<sets>
<group name="default" default="yes">
<set name="standard">
<rring>Rajas Ring</rring>
</set>
<set name="fishing">
<range>Lu Shang's F. Rod</range>
<ammo>Shrimp Lure</ammo>
</set>
<set name="idle"/>
<set name="weaponskill"/>
</group>
<group name="rng">
<set name="idle"/>
<set name="standard">
<lear>Beater's Earring</lear>
<waist>Gun Belt</waist>
</set>
</group>
<group name="nin">
<set name="idle"/>
<set name="standard">
<lear>Drone Earring</lear>
<waist>Swift Belt</waist>
</set>
</group>
</sets>
<variables>
<!-- ** Enable Luzaf's Ring for all rolls ** -->
<var name="enablering">0</var>
<!-- ** Enable Luzaf's Ring for Corsair roll only (I used this to level up, maybe useless at 75) -->
<var name="enableforcorsair">1</var>
<!-- ** The current roll ** -->
<var name="currentroll">null</var>
<!-- ** Echo lucky numbers ** -->
<var name="echolucky">0</var>
</variables>
<rules>
<action type="equip" when="idle" set="idle"/>
<action type="equip" when="engaged" set="standard"/>
<action type="equip" when="aftercast" set="standard"/>
<if type="corsairroll">
<!-- ** Store the current roll in a variable ** -->
<action type="command" when="aftercast">sc var set currentroll %spell</action>
<!-- ** Checks the command to see if it's the same as the current roll. If it is, it toggles to double-up. ** -->
<if advanced='"%spell" = "$currentroll"'>
<action type="changespell" spell="double-up" />
</if>
<!-- ** Enables luzaf's ring via variables config ** -->
<if advanced='$enableforcorsair = "1"'>
<if spell="corsair*">
<action type="equip" when="precast">
<rring>Luzaf's Ring</rring>
</action>
</if>
</if>
<!-- ** Echo lucky numbers if you don't know them ** -->
<if advanced="$echolucky">
<if spell="choral*|samurai*|scholar*">
<action type="command">input /echo ******* [%spell] Lucky: 2 *******</action>
</if>
<elseif spell="healer*|monk*|drachen*|gallant*|dancer*">
<action type="command">input /echo ******* [%spell] Lucky: 3 *******</action>
</elseif>
<elseif spell="ninja*|hunter*|chaos*|puppet*|beast*|warlock*">
<action type="command">input /echo ******* [%spell] Lucky: 4 *******</action>
</elseif>
<else>
<action type="command">input /echo ******* [%spell] Lucky: 5 *******</action>
</else>
</if>
<if advanced='$enablering = "1"'>
<action type="equip" when="precast">
<rring>Luzaf's Ring</rring>
</action>
</if>
</if>
<elseif type="double-up">
<if advanced='($enableforcorsair = "1") AND ($currentroll = "Corsair’s Roll")'>
<action type="equip" when="precast">
<rring>Luzaf's Ring</rring>
</action>
</if>
</elseif>
</rules>
</spellcast>