Hi guys,
Would really appreciate some advice from somebody more experienced than myself in LUA...I'm quite sure the UnitHealth() function may only have one unit (eg. "player", "target" etc), but I'm stumped to an alternative for querying the HP of my whole party. I'm going crazy right now D:
Code:
for _,k in ipairs(PQ_Party) do
local unitHealth = 100 * UnitHealth(k) / UnitHealthMax(k)
for _,m in ipairs(PQ_DispelDefensive)
if UnitBuffID(k,m)
and not LineOfSight(k)
and not unitHealth(k) <= 30
then
SpellStopCasting()
CastSpellByID(527,k)
Sorry for my English, it is not my first language.
Thanks in anticipation,
Regards,
doguking