Originally Posted by
rgv
Fake casting is important.
Hold down pause if you don't want it to fake cast while GHW/HS is casting.
Jukeboxes are better though.
Also @Party I found a better/more optimised way to deal with purges. Heres the code i use.
PHP Code:
local PlayerHP = 100 * UnitHealth("player") / UnitHealthMax("player")
local PlayerMana = 100 * UnitPower("player") / UnitPowerMax("player")
local purgeThis2 = {
1044, -- Hand of Freedom
6940, -- Hand of Sacrifice
69369, -- Predatory Swiftness
12472, -- Icy Veins
1022, -- Hand of Protection
11426, -- Ice Barrier
20925, -- Sacred Shield
114250, -- Selfless Healer
17 -- Power Word: Shield
}
if PQR_SpellAvailable(528)
and PlayerHP > 70
and PlayerMana > 70 then
for i = 1, #cTar do
if UnitExists(cTar[i]) then
for j = 1, #purgeThis2 do
if UnitBuffID(cTar[i], purgeThis2[j]) ~= nil
and PQR_IsOutOfSight(cTar[i], 0.1) == false then
_castSpell(528, cTar[i])
end
end
end
end
end
Heres the Ctar table i use.
PHP Code:
if not cTar then
cTar = {"target","focus","mouseover","arena1","arena2","arena3","arena4","arena5","arenapet1","arenapet2","arenapet3","arenapet4","arenapet5","pettarget"}
end
Basically it makes sure the spell is available and you have enough HP/Mana then it goes though the custom target list. opposed to going thought the list then checking if you have enough mana and what not.