Originally Posted by
Nerder
If I could get someones assistance with a profile that I'm in the works of, that would be great. I've noticed around that there is no real mistweaver, so earlier today I started to work on mine again. I've completed a work in progress one but am not satisfied with it at all... I mean it'll heal but certain things that I like are not working. In LFR I was atleast top 3 heals each encounter, 1 was top heals (460 ilvl mistweaver and was also wearing an agi chest, hah)
Anyway, the part that I'm stuck on is with canceling the current cast. I have it working to a certain extent...
Code:
if UnitBuffID(members[1].Unit, 115175, "PLAYER") then
if members[1].HP >= 95 then
if UnitChannelInfo("player") then
if UnitChannelInfo("player") == GetSpellInfo(115175) then
PQR_CustomTarget = members[1].Unit
SpellStopCasting()
return true
end
end
end
end
Thats what I'm using at the moment, but its not working to cancel the channel unless I physically have the target targeted. After seeing this I've tested with other things like Dispells when targets have certain buffs, they too will not dispell unless actually targeting. I know the members[1].Unit part is working or the members[1].HP because the healing spells are working no issue.
There's no released Mistweaver, but that doesn't mean they don't exist.
Check for the buff on the target, not just if you are channeling.
Also, with they way you have it set up, it doesn't look like Enveloping or Surging will cast correctly if the lowest health target changes while channeling.
Here's a snippet of my code for Soothing:
Code:
local target,health=HealTarget()
local heal=SoothingMist
if GetUnitSpeed("player")==0
and health>=heal then
if not UnitBuff(target,"Soothing Mist",nil,"player") then
CastHeal("Soothing Mist",target)
end
else
if UnitChannelInfo("player")=="Soothing Mist" then
SpellStopCasting()
end
end