So here's what I did... i started putting -- before specific rules so I could at least get a base to see if the rules would work without them. So lines 255/256, 261/262, 264/265, 267, 271/272, 274, 300/301 were -- so they wouldnt affect things.
All spells precast and midcast worked correctly.
Next step is to slowly put stuff back in, keep testing things, and see where things screw up. Unfortunately I put 261/262 back first, and everything went to crap. Elemental spells and Cure spells were precasting in the wrong gear...both were using the neckpiece for stone spells.
Stoneskin went fine though. Something tells me it is involving the ordering of the rules I have...
if spell.action_type == 'Magic' or spell.type == 'Ninjutsu' then
-- if spell.english == 'Impact' then
-- equip(sets.precast.HasteElemental,{body="Twilight Cloak"})
if spell.english == 'Stoneskin' then
equip(sets.precast.HasteStoneskin)
elseif spell.english == 'Cursna' then
equip(sets.midcast.Cursna)
elseif spell.english == 'Stone' or 'Stone II' or 'Stonega' then
equip(sets.midcast.Stone)
elseif spell.skill == 'Elemental Magic' then
-- if spell.cast_time < 9 then
-- equip(sets.midcast['Elemental Magic'])
equip(sets.precast.HasteElemental)
-- end
elseif spell.skill == 'Enhancing Magic' then
equip(sets.precast.HasteEnhancing)
elseif spell.skill == 'Healing Magic' then
-- if spell.cast_time < 9 then
-- equip(sets.midcast['Healing Magic'])
equip(sets.precast.HasteHealing)
-- end
else equip(sets.precast.Fastcast)
end
In my precast, when I define magic, i first give rules for stoneskin, then cursna.. those work fine. Then I define what to do for stone/stoneII/stonega, then there are the precast rules for elemental magic, enhancing, healing, etc. For some reason the stone stuff is over-riding the precast rules that follow afterwards. The precast rules pre-lines 261/262... fine... the stuff after those lines... messing up.
Just an fyi, I intentionally set stone 1/2 & stonega 1 to use the midcast gearset during the precast. the spells go off so fast that the gear doesnt change fast enough for midcast to kick in