The problem that I'm having is getting one part of the rh code to work. It didn't work when I used RH, and I'd like to get it working to put it into my new macro.
This code happens at the beginning of a combat loop.
Code: Select all
/if (${doSwitch} && ${wstype.Equal[Beneficial]}) {
/varset itemspellname ${FindItem[${weapon1}].Spell}
/if (${itemspellname.NotEqual[${Me.Buff[${itemspellname}]}]} && !${FindItem[${weapon1}].InvSlot.Name.Equal[mainhand]} && !${FindItem[${weapon1}].InvSlot.Name.Equal[offhand]}) {
/if (${verbosity}>=1) /${channel} ** Beneficial proc-weapon swapping...
/call Weapon_Swap "${weapon1}" "${weapon2}"
}
}
Before any combat takes place:
/echo ${wstype} yields Beneficial
/echo ${doSwitch} yields TRUE
/echo ${weapon1} yields Ancient Prismatic Brawl Stick
/echo ${weapon2} yields Kerasian Axe of Ire
/echo ${itemspellname} yields None
After combat takes place:
/echo ${wstype} yields Beneficial
/echo ${doSwitch} yields TRUE
/echo ${weapon1} yields Ancient Prismatic Brawl Stick
/echo ${weapon2} yields Kerasian Axe of Ire
/echo ${itemspellname} yields NULL
It doesn't look like it sees a proc on the Ancient Prismatic Brawl Stick; therefore, it won't check my buffs to see if Avatar is absent, and thus it won't swap out the weapons.
Any clue on how to fix this one?



