You had an out of place <if> that would prevent SMN action until you had TPGT=45.
Code:
<?xml version="1.0" ?>
<spellcast>
<config
Debug="True"
HideErrors="False"
ShowGearSwaps="False"
quickcommands="True"
showspellinfo="False"/>
<sets>
<group default="yes" name="SMN">
<!--Light Based Gear-->
<set name="Light" BaseSet="Avatar">
<main>Bahamut's Staff</main>
</set>
<set name="Carbuncle" BaseSet="Light">
<hands>Carbuncle Mitts</hands>
</set>
<set name="LightDay" BaseSet="Light">
<Body>Summoner's Dblt.</Body>
</set>
<set name="LightWeather" BaseSet="Light">
<head>Caller's Horn +1</head>
</set>
<set name="LightFull" BaseSet="Light">
<head>Caller's Horn +1</head>
<body>Summoner's Dblt.</body>
</set>
<!--Dark Based Gear-->
<set name="Dark" BaseSet="Avatar">
<main>Bahamut's Staff</main>
</set>
<set name="DarkDay" BaseSet="Dark">
<body>Summoner's Dblt.</body>
<hands>Caller's Bracer's +1</hands>
</set>
<set name="DarkWeather" BaseSet="Dark">
<head>Caller's Horn +1</head>
</set>
<set name="DarkFull" BaseSet="Dark">
<head>Caller's Horn +1</head>
<body>Summoner's Dblt.</body>
<hands>Caller's Bracer's +1</hands>
</set>
<!--Fire Based Gear-->
<set name="Fire" BaseSet="Avatar">
<main>Bahamut's Staff</main>
</set>
<set name="FireDay" BaseSet="Fire">
<body>Summoner's Dblt.</body>
<hands>Caller's Bracer's +1</hands>
</set>
<set name="FireWeather" BaseSet="Fire">
<head>Caller's Horn +1</head>
</set>
<set name="FireFull" BaseSet="Fire">
<head>Caller's Horn +1</head>
<body>Summoner's Dblt.</body>
<hands>Caller's Bracer's +1</hands>
</set>
<!--Earth Based Gear-->
<set name="Earth" BaseSet="Avatar">
<main>Bahamut's Staff</main>
</set>
<set name="EarthDay" BaseSet="Earth">
<body>Summoner's Dblt.</body>
<hands>Caller's Bracer's +1</hands>
</set>
<set name="EarthWeather" BaseSet="Earth">
<head>Caller's Horn +1</head>
</set>
<set name="EarthFull" BaseSet="Earth">
<head>Caller's Horn +1</head>
<body>Summoner's Dblt.</body>
<hands>Caller's Bracer's +1</hands>
</set>
<!--Water Based Gear-->
<set name="Water" BaseSet="Avatar">
<main>Bahamut's Staff</main>
</set>
<set name="WaterDay" BaseSet="Water">
<body>Summoner's Dblt.</body>
<hands>Caller's Bracer's +1</hands>
</set>
<set name="WaterWeather" BaseSet="Water">
<head>Caller's Horn +1</head>
</set>
<set name="WaterFull" BaseSet="Water">
<head>Caller's Horn +1</head>
<body>Summoner's Dblt.</body>
<hands>Caller's Bracer's +1</hands>
</set>
<!--Wind Based Gear-->
<set name="Wind" BaseSet="Avatar">
<main>Bahamut's Staff</main>
<head>Karura Hachigane</head>
</set>
<set name="WindDay" BaseSet="Wind">
<body>Summoner's Dblt.</body>
<hands>Caller's Bracer's +1</hands>
<head>Karura Hachigane</head>
</set>
<set name="WindWeather" BaseSet="Wind">
<head>Caller's Horn +1</head>
</set>
<set name="WindFull" BaseSet="Wind">
<head>Caller's Horn +1</head>
<body>Summoner's Dblt.</body>
<hands>Caller's Bracer's +1</hands>
</set>
<!--Ice Based Gear-->
<set name="Ice" BaseSet="Avatar">
<main>Bahamut's Staff</main>
</set>
<set name="IceDay" BaseSet="Ice">
<body>Summoner's Dblt.</body>
<hands>Caller's Bracer's +1</hands>
</set>
<set name="IceWeather" BaseSet="Ice">
<head>Caller's Horn +1</head>
</set>
<set name="IceFull" BaseSet="Ice">
<head>Caller's Horn +1</head>
<body>Summoner's Dblt.</body>
<hands>Caller's Bracer's +1</hands>
</set>
<!--Thunder Based Gear-->
<set name="Thunder" BaseSet="Avatar">
<main>Bahamut's Staff</main>
</set>
<set name="ThunderDay" BaseSet="Thunder">
<body>Summoner's Dblt.</body>
<hands>Caller's Bracer's +1</hands>
</set>
<set name="ThunderWeather" BaseSet="Thunder">
<head>Caller's Horn +1</head>
</set>
<set name="ThunderFull" BaseSet="Thunder">
<head>Caller's Horn +1</head>
<body>Summoner's Dblt.</body>
<hands>Caller's Bracer's +1</hands>
</set>
<!--BloodPact Based Gear-->
<!--Gear to reduce Bloodpact delay-->
<set name="BPTime">
<head>Austere Hat</head>
<body>Yinyang Robe</body>
<hands>Smn. Bracers +1</hands>
<legs>Summoner's Spats</legs>
<feet>Summoner's Pgch.</feet>
</set>
<!--Gear to increase Smn Skill -->
<set name="BPSkill">
<head>Caller's Horn +1</head>
<neck>Caller's Pendant</neck>
<hands>Smn. Bracers +1</hands>
<feet>Nashira Crackows</feet>
<body>Augur's Jaseran</body>
<rear>Summoning Earring</rear>
<back>Astute Cape</back>
<legs>Oracle's Braconi</legs>
</set>
<!--Gear for Physical Blood Pacts -->
<set name="BPPhysical">
<head>Caller's Horn +1</head>
<neck>Sacrifice Torque</neck>
<hands>Smn. Bracers +1</hands>
<body>Royal Redingote</body>
<back>Astute Cape</back>
<legs>Oracle's Braconi</legs>
<feet>Summoner's Pgch.</feet>
</set>
<!--Gear for Magical Blood Pacts -->
<set name="BPMagical">
<head>Caller's Horn +1</head>
<main>Fay Crozier</main>
<neck>Eidolon Pendant</neck>
<hands>Smn. Bracers +1</hands>
<body>Royal Redingote</body>
<back>Astute Cape</back>
<legs>Oracle's Braconi</legs>
<feet>Nashira Crackows</feet>
</set>
<!--Gear for Physical Blood Pacts with Garuda-->
<set name="BPPhysicalGaruda">
<head>Karura Hachigane</head>
<neck>Sacrifice Torque</neck>
<hands>Smn. Bracers +1</hands>
<body>Royal Redingote</body>
<back>Astute Cape</back>
<legs>Herder's Subligar</legs>
<feet>Summoner's Pgch.</feet>
</set>
<!--Misc. Gear-->
<!--Base gear that all sets are built from anything that will be used for all sets put in here-->
<set name="Basic">
<main>Bahamut's Staff</main>
<sub>Staff Strap</sub>
<ammo>Hedgehog Bomb</ammo>
<head>Caller's Horn +1</head>
<neck>Caller's Pendant</neck>
<lear>Loquac. Earring</lear>
<rear>Summoning Earring</rear>
<body>Yinyang Robe</body>
<hands>Nashira Gages</hands>
<lring>Evoker's Ring</lring>
<rring>$Ring</rring>
<back>Astute Cape</back>
<waist>Hierarch Belt</waist>
<legs>Augur's Brais</legs>
<feet>Caller's Pgch. +1</feet>
</set>
<!--Gear that has HMP+ stats and MP+ -->
<set name="Resting" BaseSet="Basic">
<main>Dark Staff</main>
<neck>Eidolon Pendant</neck>
<rear>Magnetic Earring</rear>
<body>Yigit Gomlek</body>
<feet>Goliard Clogs</feet>
<head>Goliard Chapeau</head>
<hands>Oracle's Gloves</hands>
<lear>Relaxing Earring</lear>
<waist>Hierarch Belt</waist>
</set>
<!--MP+, Fastcast and Dmg-% gear for when no Avatar/Spirit is Preseant-->
<set name="Standard" BaseSet="Basic">
<main>Terra's Staff"</main>
<head>Caller's Horn +1</head>
<neck>Caller's Pendant</neck>
<hands>Serpentes Cuffs</hands>
<feet>Serpentes Sabots</feet>
<body>Yinyang Robe</body>
<rear>Summoning Earring</rear>
<back>Cheviot Cape</back>
<waist>Diabolos's Rope</waist>
<legs> Goliard Trews</legs>
</set>
<!--Avatar Perp - gear that isnt used for other sets -->
<set name="Avatar" Baseset="Basic">
<hands>Nashira gages</hands>
<feet>Evk. Pigaches +1</feet>
</set>
<!--Gear for Curing/Removing debuffs for party members (Cure Potency and MND+ gear)-->
<set name="Healing" Baseset="Basic">
<body>Goliard Saio</body>
<main>Teiwaz</main>
<legs>Tatsu. Sitagoromo</legs>
<head>Selenian Cap</head>
</set>
<!--Stoneskin gear-->
<set name="Stoneskin">
<body>Errant Hpl.</body>
<main>Kirin's Pole</main>
<feet>Goliard Clogs</feet>
<head>Selenian Cap</head>
<waist>Penitent's Rope</waist>
</set>
</group>
</sets>
<variables clear="yes">
<!--Set this to True before casting a spirit will check for best Spirit to Elemental Siphon-->
<var name="ES">1</var>
<!--This is the current avatar gear set and what gear you will revert back to after magic's or BP's that change gear -->
<var name="Avatar">Standard</var>
<!--Variables for Elemental Spirit Names used for changespells for Elemental Siphon-->
<var name="Light">Light</var>
<var name="Dark">Dark</var>
<var name="Fire">Fire</var>
<var name="Earth">Earth</var>
<var name="Wind">Air</var>
<var name="Water">Water</var>
<var name="Ice">Ice</var>
<var name="Thunder">Thunder</var>
<var name="Ring">Serket Ring</var>
<!--Set this to the percentage of TP you want to start locking weapons at-->
<var Name="LockTP">45</var>
<var name="BPMOON">0</var>
<var name="ShowBPStat">1</var>
</variables>
<rules>
<if status="Dead">
<action Type="cancelspell"/>
<action Type="return"/>
</if>
<else>
<equip when="idle|aftercast" Set="$Avatar"/>
</else>
<equip when="resting" Set="Resting"/>
<aftercastdelay Delay="3"/>
<!--Disables equipment switching that would cause loss of TP. Lock does not work because of changes with $ElementalStaff-->
<if TPGT="$LockTP">
<action Type="Disable" Slot="Main|Sub|Range"/>
</if>
<else>
<action Type="Enable" Slot="Main|Sub|Range"/>
</else>
<!--Avatar/Spirit Related Rules-->
<if type="SummonerPact">
<action type="AddToChat" Color="204">Day=%Day (%DayElement) Weather=%Weather (%WeatherElement)</action>
<!--Create Alias for BloodPacts-->
<if Spell="Carbuncle">
<action type="Command">alias 75Nuke /;</action>
<action type="Command">alias 65Nuke /;</action>
<action type="Command">alias atkPact /;</action>
<action type="Command">alias bufPact input /pet "Healing Ruby II" <me></action>
<action type="Command">alias abfPact input /pet "Shining Ruby" <me>;</action>
<action type="Command">alias debPact input /pet "Poison Nails" <t>;</action>
<action type="Command">alias a70Pact input /pet "Holy Mist" <t>;</action>
</if>
<elseif Spell="Diabolos">
<action type="Command">alias 75Nuke input /pet "Night Terror" <t></action>
<action type="Command">alias 65Nuke input /pet "Ultimate Terror" <t></action>
<action type="Command">alias atkPact input /pet "Somnolence" <t></action>
<action type="Command">alias bufPact input /pet "Noctoshield" <me></action>
<action type="Command">alias abfPact input /pet "Dream Shroud" <me></action>
<action type="Command">alias debPact input /pet "Nightmare" <t></action>
<action type="Command">alias a70Pact input /pet "Netherblast" <t></action>
</elseif>
<elseif Spell="Fenrir">
<action type="Command">alias 75Nuke input /pet "Lunar Bay" <t></action>
<action type="Command">alias 65Nuke /;</action>
<action type="Command">alias atkPact input /pet "Lunar Roar" <t></action>
<action type="Command">alias bufPact input /pet "Ecliptic Growl" <me></action>
<action type="Command">alias abfPact input /pet "Ecliptic Howl" <me></action>
<action type="Command">alias debPact input /pet "Lunar Cry" <t></action>
<action type="Command">alias a70Pact input /pet "Eclipse Bite" <t></action>
</elseif>
<elseif Spell="Garuda">
<action type="Command">alias 75Nuke input /pet "Wind Blade" <t>;</action>
<action type="Command">alias 65Nuke input /pet "Aero IV" <t>;</action>
<action type="Command">alias atkPact /;</action>
<action type="Command">alias bufPact input /pet "Fleet Wing" <me>;</action>
<action type="Command">alias abfPact input /pet "Hastega" <me>;</action>
<action type="Command">alias debPact input /pet "Whispering Wind" <me>;</action>
<action type="Command">alias a70Pact input /pet "Predator Claws" <t>;</action>
</elseif>
<elseif Spell="Ifrit">
<action type="Command">alias 75Nuke input /pet "Meteor Strike" <t>;</action>
<action type="Command">alias 65Nuke input /pet "Fire IV" <t>;</action>
<action type="Command">alias atkPact input /pet "Double Punch" <t>;</action>
<action type="Command">alias bufPact input /pet "Burning Strike" <t>;</action>
<action type="Command">alias abfPact input /pet "Crimson Howl" <me>;</action>
<action type="Command">alias debPact /;</action>
<action type="Command">alias a70Pact input /pet "Flaming Crush" <t>;</action>
</elseif>
<elseif Spell="Leviathan">
<action type="Command">alias 75Nuke input /pet "Grand Fall" <t>;</action>
<action type="Command">alias 65Nuke input /pet "Water IV" <t>;</action>
<action type="Command">alias atkPact input /pet "Tail Whip" <t>;</action>
<action type="Command">alias bufPact input /pet "Spring Water" <me>;</action>
<action type="Command">alias abfPact /;</action>
<action type="Command">alias debPact input /pet "Slowga" <t>;</action>
<action type="Command">alias a70Pact input /pet "Spinning Dive" <t>;</action>
</elseif>
<elseif Spell="Ramuh">
<action type="Command">alias 65Nuke input /pet "Thunder IV" <t>;</action>
<action type="Command">alias 75Nuke input /pet "Thunderstorm" <t>;</action>
<action type="Command">alias atkPact input /pet "Thunderspark" <t>;</action>
<action type="Command">alias bufPact input /pet "Lightning Armor" <me>;</action>
<action type="Command">alias abfPact input /pet "Rolling Thunder" <me>;</action>
<action type="Command">alias debPact /;</action>
<action type="Command">alias a70Pact input /pet "Chaotic Strike" <t>;</action>
</elseif>
<elseif Spell="Shiva">
<action type="Command">alias 75Nuke input /pet "Heavenly Strike" <t>;</action>
<action type="Command">alias 65Nuke input /pet "Blizzard IV" <t>;</action>
<action type="Command">alias atkPact input /pet "Double Slap" <t>;</action>
<action type="Command">alias bufPact input /pet "Frost Armor" <me>;</action>
<action type="Command">alias abfPact /;</action>
<action type="Command">alias debPact input /pet "Sleepga" <t>;</action>
<action type="Command">alias a70Pact input /pet "Rush" <t>;</action>
</elseif>
<elseif Spell="Titan">
<action type="Command">alias 65Nuke input /pet "Stone IV" <t>;</action>
<action type="Command">alias 75Nuke input /pet "Geocrush" <t>;</action>
<action type="Command">alias atkPact input /pet "Megalith Throw" <t>;</action>
<action type="Command">alias bufPact input /pet "Earthen Ward" <me>;</action>
<action type="Command">alias abfPact /;</action>
<action type="Command">alias debPact input /pet "Rock Buster" <t>;</action>
<action type="Command">alias a70Pact input /pet "Mountain Buster" <t>;</action>
</elseif>
<if mode="AND" hpplt="75" tplt="100">
<action Type="Var" cmd='set Ring "Conjurer's Ring"'/>
<action type="AddToChat" Color="204">HP < 75% Equiping Conjurer's Ring</action>
</if>
<elseif mode="or" hppgt="74" tpgt="100">
<action Type="Var" cmd='set Ring "Tamas Ring"'/>
<action type="AddToChat" Color="204">HP > 75% Equiping Tamas Ring</action>
</elseif>
<!--checks if your using an Elemental Siphon macro-->
<if Spell="*Spirit" advanced='"$ES"="1"'>
<if advanced='"%Weather"="%WeatherElement x2"'>
<action type="ChangeSpell" Spell="$%WeatherElement Spirit"/>
</if>
<else>
<action type="ChangeSpell" Spell="$%DayElement Spirit"/>
</else>
<action Type="Command" when="aftercast">wait 2; input /ja "Elemental Siphon" <me></action>
</if>
<!--Sets the Base gear for the avatar/spirit being cast based on Spells element-->
<action Type="Var" cmd="set Avatar %SpellElement"/>
<!--Checks to see if DayElement is same as Avatar/Spirits and equips Afv2 body-->
<if advanced='"%SpellElement" ="%DayElement"'>
<!--Sets gear to the elemant and afv2 body-->
<action Type="Var" cmd="set Avatar %SpellElementDay"/>
</if>
<!--Checks to see if WeatherElement is same as Avatar/Spirits and equips Afv2 Head-->
<if advanced='"%SpellElement" ="%WeatherElement"'>
<action Type="Var" cmd="set Avatar %SpellElementWeather"/>
</if>
<!--Weather Fix for Dynamis/Limbus weather as it seems to give Prep - for dark based Avatars/Spirits-->
<if advanced='"%SpellElement"="Dark"'>
<if Area="Dynamis*|*Apollyon*">
<action Type="Var" cmd="set Avatar DarkWeather"/>
</if>
</if>
<!--Checks for both Day and Weather to see if it is the same as Avatar/spirit and Equips both Afv2 Body and Head-->
<if advanced='"%SpellElement" ="%WeatherElement" and "%SpellElement" ="%DayElement"'>
<action Type="Var" cmd="set Avatar %SpellElementFull"/>
</if>
<!--Full Fix for Dynamis/Limbus weather as it seems to give Prep - for dark based Avatars/Spirits-->
<if mode="and" Area="Dynamis*|*Apollyon*" advanced='"%SpellElement"="Dark" and "%SpellElement" ="%DayElement"'>
<action Type="Var" cmd="set Avatar %SpellElementFull"/>
</if>
<!--Carbuncle does not need afv2 so has it's own gear set -->
<if Spell="Carbuncle">
<action Type="Var" cmd="set Avatar Carbuncle"/>
</if>
</if>
<!--Job Abillity related Rules -->
<!--Equips Smn Skill gear to maximise mp gained -->
<if spell="Elemental Siphon">
<equip when="Precast" set="BPskill"/>
<action type="command" When="Aftercast">wait 2; input /pet release <me></action>
</if>
<!--Checks if your doing a BloodPact Ward and swaps gear for each calculation (Time - >
SMN Skill+/Dmg + > Back to Original Gear before BP) -->
<if Type="BloodPactWard">
<if spell="Ecliptic Howl">
<if advanced="%MOONPCT > 89">
<action type="Var" cmd=" Set BPMOON Moon @ %Moonpct% [Ecliptic Howl] Accuracy 25 - Evasion 1"/>
</if>
<elseif advanced="%MOONPCT > 74">
<action type="Var" cmd=" Set BPMOON Moon @ %Moonpct% [Ecliptic Howl] Accuracy 21 - Evasion 5"/>
</elseif>
<elseif advanced="%MOONPCT > 59">
<action type="Var" cmd=" Set BPMOON Moon @ %Moonpct% [Ecliptic Howl] Accuracy 17 - Evasion 9"/>
</elseif>
<elseif advanced="%MOONPCT > 39">
<action type="Var" cmd=" Set BPMOON Moon @ %Moonpct% [Ecliptic Howl] Accuracy 13 - Evasion 13"/>
</elseif>
<elseif advanced="%MOONPCT > 24">
<action type="Var" cmd=" Set BPMOON Moon @ %Moonpct% [Ecliptic Howl] Accuracy 9 - Evasion 17"/>
</elseif>
<elseif advanced="%MOONPCT > 9">
<action type="Var" cmd=" Set BPMOON Moon @ %Moonpct% [Ecliptic Howl] Accuracy 5 - Evasion 21"/>
</elseif>
<else>
<action type="Var" cmd=" Set BPMOON Moon @ %Moonpct% [Ecliptic Howl] Accuracy 1 - Evasion 25"/>
</else>
<if advanced='%PartyCount > 1 and "$ShowBPStat"="1"'>
<action type="command" When="Precast">input /p $BPMOON</action>
</if>
<else>
<action type="AddToChat" color="204">$BPMOON</action>
</else>
</if>
<if spell="Ecliptic Growl">
<if advanced="%MOONPCT > 89">
<action type="Var" cmd=" Set BPMOON Moon @ %Moonpct% [Ecliptic Growl] STR/DEX/VIT 7 - INT/MND/CHR/AGI 1"/>
</if>
<elseif advanced="%MOONPCT > 74">
<action type="Var" cmd=" Set BPMOON Moon @ %Moonpct% [Ecliptic Growl] STR/DEX/VIT 6 - INT/MND/CHR/AGI 2"/>
</elseif>
<elseif advanced="%MOONPCT > 59">
<action type="Var" cmd=" Set BPMOON Moon @ %Moonpct% [Ecliptic Growl] STR/DEX/VIT 5 - INT/MND/CHR/AGI 3"/>
</elseif>
<elseif advanced="%MOONPCT > 39">
<action type="Var" cmd=" Set BPMOON Moon @ %Moonpct% [Ecliptic Growl] STR/DEX/VIT 4 - INT/MND/CHR/AGI 4"/>
</elseif>
<elseif advanced="%MOONPCT > 24">
<action type="Var" cmd=" Set BPMOON Moon @ %Moonpct% [Ecliptic Growl] STR/DEX/VIT 3 - INT/MND/CHR/AGI 5"/>
</elseif>
<elseif advanced="%MOONPCT > 9">
<action type="Var" cmd=" Set BPMOON Moon @ %Moonpct% [Ecliptic Growl] STR/DEX/VIT 2 - INT/MND/CHR/AGI 6"/>
</elseif>
<else>
<action type="Var" cmd=" Set BPMOON Moon @ %Moonpct% [Ecliptic Growl] STR/DEX/VIT 1 - INT/MND/CHR/AGI 7"/>
</else>
<if advanced='%PartyCount > 1 and "$ShowBPStat"="1"'>
<action type="command" When="Precast">input /p $BPMOON</action>
</if>
<else>
<action type="AddToChat" color="204">$BPMOON</action>
</else>
</if>
<if spell="Lunar Cry">
<if advanced="%MOONPCT > 89">
<action type="Var" cmd=" Set BPMOON Moon @ %Moonpct% [Lunar Cry] Enemy Acc Down 31 - Enemy Eva Down 1"/>
</if>
<elseif advanced="%MOONPCT > 74">
<action type="Var" cmd=" Set BPMOON Moon @ %Moonpct% [Lunar Cry] Enemy Acc Down 26 - Enemy Eva Down 6"/>
</elseif>
<elseif advanced="%MOONPCT > 59">
<action type="Var" cmd=" Set BPMOON Moon @ %Moonpct% [Lunar Cry] Enemy Acc Down 21 - Enemy Eva Down 11"/>
</elseif>
<elseif advanced="%MOONPCT > 39">
<action type="Var" cmd=" Set BPMOON Moon @ %Moonpct% [Lunar Cry] Enemy Acc Down 16 - Enemy Eva Down 16"/>
</elseif>
<elseif advanced="%MOONPCT > 24">
<action type="Var" cmd=" Set BPMOON Moon @ %Moonpct% [Lunar Cry] Enemy Acc Down 11 - Enemy Eva Down 21"/>
</elseif>
<elseif advanced="%MOONPCT > 9">
<action type="Var" cmd=" Set BPMOON Moon @ %Moonpct% [Lunar Cry] Enemy Acc Down 6 - Enemy Eva Down 26"/>
</elseif>
<else>
<action type="Var" cmd=" Set BPMOON Moon @ %Moonpct% [Lunar Cry] Enemy Acc Down 1 - Enemy Eva Down 31"/>
</else>
<if advanced='%PartyCount > 1 and "$ShowBPStat"="1"'>
<action type="command" When="Precast">input /p $BPMOON</action>
</if>
<else>
<action type="AddToChat" color="204">$BPMOON</action>
</else>
</if>
<equip when="precast"
set="BPTime"/>
<equip when="midcast"
set="BPSkill"/>
</if>
<!--Checks if your doing a BloodPact Rage - Physical and swaps gear for each calculation (Time - >
SMN Skill+/Dmg + > Back to Original Gear before BP) -->
<if Spell="Punch|Rock Throw|Barracuda Dive|Axe Kick|Shock Strike|Poison Nails|Moonlit Charge|Crescent Fang|Rock Buster|Burning Strike|Tail Whip|Double Punch|Megalith Throw|Double Slap|Eclipse Bite|Flaming Crush|Mountain Buster|Spinning Dive|Rush|Chaotic Strike">
<equip when="precast"
set="BPTime"/>
<equip when="midcast"
set="BPPhysical"/>
</if>
<!--Checks if your doing a BloodPact Rage - Magical and swaps gear for each calculation (Time - >
SMN Skill+/Dmg + > Back to Original Gear before BP) -->
<if Spell="*IV|Wind Blade|Geocrush|Heavenly Strike|Holy Mist|Lunar Bay|Night Terror|">
<equip when="precast"
set="BPTime"/>
<equip when="midcast"
set="BPMagical"/>
</if>
<!--Checks if your doing a BloodPact Rage - Garuda and swaps gear for each calculation (Time - >
SMN Skill+/Dmg + > Back to Original Gear before BP) -->
<if Spell="Claw|Predator Claws">
<equip when="precast"
set="BPTime"/>
<equip when="midcast"
set="BPPhysicalGaruda"/>
</if>
<!--Changes gear to Refresh,Fastcast and dmg -% gear when Avatar/Spirit is released-->
<if Spell="Release">
<action type="DefaultTarget" target="<me>"/>
<action Type="Var" cmd="set Avatar Standard"/>
<action type="Command">alias 75Nuke /;</action>
<action type="Command">alias 65Nuke /;</action>
<action type="Command">alias atkPact /;</action>
<action type="Command">alias bufPact /;</action>
<action type="Command">alias abfPact /;</action>
<action type="Command">alias debPact /;</action>
<action type="Command">alias a70Pact /;</action>
</if>
<!--Magic Related Rules-->
<!--If Sneak is being cast equips gear to maximise buff time and then removes sneak if buff already present if SneakMe variable is set to true-->
<if Spell="Sneak|Invisible">
<if spell="Sneak">
<if TargetType="SELF">
<action type="Command" when="Precast">cancel 71</action>
</if>
</if>
<equip when="precast"
set="SneakInvis"/>
</if>
<!--When casting Cures/Buffs/and Debuff removing equips Cure Potency and MND+ gear-->
<if Spell="Cur*|Protect*|Shell*|Regen|Raise|Erase|Poisona|Parlyna|Blindna|Silena|Viruna|Cursna" NotSpell="Protectra*|Shellra*">
<equip when="precast"
set="Healing"/>
</if>
<!--Makes sure Self is targeted when casting self target spells borrowed this from another XML thought it was a good idea-->
<if Spell="Bar*|Reraise|Teleport-*|Aquaveil|Protectra*|Shellra*">
<action type="ChangeTarget" target="<me>"/>
</if>
<if Spell="Stoneskin">
<equip when="precast"
set="Stoneskin"/>
<action
type="ChangeTarget"
target="<me>"/>
</if>
<equip when="idle|aftercast" Set="$Avatar"/>
</rules>
</spellcast>
See if this works.