Phoenix.Gaiarorshack said:
»quick question just being curios
since this line
<command>wait 1.5; %spell %spelltarget</command>
activates a new spellcasting
would it go through the rules once again on this call of the spell?
As Hitetsu mentioned, it will go through your rule again (unless you add a raw variable to the command function... I forget how that works). The reason this line is there is to allow spellcast to change target and change spell (to use the JA on yourself) while still maintaining the original spell and target (probably an obvious note, just clarifying).
Phoenix.Gaiarorshack said:
»at precast you put in commadn to swap to orison hands
then call me na set however my na set have a hand item in it.
it seams to me that would overwrite the orison hand +2 equipment
or am i missing something ?
could i not just use
<equip when="precast">
<hands lock="t"> Orison Mitts +2</hands>
</equip>
?
You're right. I think I was originally under the impression that the bonus from Divine Caress applied when the JA was used, but after trying to find out which it is, the only thing I've found says that it needs to be on when the spell fires off (
credit - awesome guide btw). The mitts do not need to be on on job activation.
The best way to handle this would be to take the mitts out of the rule for Divine Caress JA use, and use a buffactive rule to make sure the mitts are on whenever you cast a -na spell with Divine Caress active:
Code
<elseif spell="Poisona|Paralyna|Blindna|Silena|Viruna|Stona">
<if notbuffactive="Divine Caress" advanced='"$DivineCaressReady" == "1"'>
<command>wait 1.5; %spell %spelltarget</command>
<changespell spell="Divine Caress"/>
<changetarget target="& l t ;me& g t ;"/>
<var cmd="set DivineCaressReady 0"/>
<command>wait 60;sc var set DivineCaressReady 1;input /echo Divine Caress Ready.</command>
</if>
<else>
<if buffactive="Divine Caress">
<equip when="precast">
<hands lock="yes">Orison Mitts +2</hands>
</equip>
</if>
<equip when="precast" set="FastCast" />
<equip when="midcast" set="Na" />
</else>
</elseif>
Again, don't forget to
take the extra spaces out of line 5.
I also took out the commands to equip fastcast and -na sets in the divine caress part of the rule, as it should be handled by the 2nd part. This should also allow the mitts to be equiped even when using the JA manually; as long as the Divine Caress buff is on your WHM, it will lock the mitts on precast (you could set to midcast but a lot of the spells fire off quickly anyway... helps to accomodate quickmagic procs also).
Please note I haven't tested this yet (at work atm).
I should also point out my first line in case anyone is copying/pasting, because I use a separate rule for cursna. If you do want the Divine Caress rule with cursna (to each their own... I prefer not having the 1.5 second wait for a spell I wanna spam), you'll need to add it in the first line. You could also add the buffactive gearswap rule in case you wanted the mitts on for cursna if Divine Caress was already active (used manually, etc.):
Code
<elseif spell="Cursna">
<if buffactive="Divine Caress">
<equip when="precast">
<hands lock="yes">Orison Mitts +2</hands>
</equip>
</if>
<equip when="precast" set="FastCast" />
<equip when="midcast" set="Cursna" />
</equip>
</elseif>
(You may or may not want to skip adding mitts if you use
hieros mittens.)
On another note, I may test changing my first line to
Code
<if notbuffactive="Divine Caress|Amnesia" advanced='"$DivineCaressReady" == "1"'>
to bypass the 1.5 second wait in the event that my WHM is amnesia'd and casting a -na spell (rare situation I'm sure, but if I'm coding anyway, why not).