Just curious, but why not simplify this and add a check for af helm latent? Cant see the rest of your XML, but if you dont have a check like this, you'll blink everytime you cast a spell your way. Kinda annoying if you are casting buffs and you dont meet the latent requirement.
Also, is there a reason why you put wyvernHB gear in a different set from your trigger set? My drg just has a preHB(af helm+legs and a midHB(saurian helm) then goes back to idle or engaged set.
Code:
<if CommandPrefix="/ma|/magic" HPPLT="50">
<action type="castdelay" delay=".2" />
<action type="equip" when="precast" set="HBTrigger" />
<action type="equip" when="midcast" set="WyvernHP" />
<action type="aftercastdelay" delay="2" />
<if Status="Engaged">
<action type="equip" when="aftercast" set="TPMAGE" />
</if>
<else>
<action type="equip" when="aftercast" set="IDLE SET HERE" />
</else>
</if>