Code
<if spell="*Spirit">
<if area="Dynamis*|*Apollyon*">
<action type="Changespell" spell="$DarkSpirit"/>
</if>
<elseif area="*Temenos*">
<action type="Changespell" spell="$LightSpirit"/>
</elseif>
<elseif Advanced='"%WeatherElement"!="None" AND ("%Weather"="%WeatherElement x2" OR $%WeatherElementStrength!=$%DayElementStrength-1 OR "%WeatherElement"="Fire" AND "%DayElement"!="Water")'>
<action type="Changespell" spell="$%WeatherElementSpirit"/>
</elseif>
<else>
<action type="Changespell" spell="$%DayElementSpirit"/>
</else>
</if>