Tyvm Mentally, Ill test it out in a bit here. I have never worked with GUID before, as crystal_tech pointed me in the right direction, I couldn't find any pertinent examples in the wowapi either ><
I'll need to change that so it isn't returning true if I had no previous target (Kinda need to have had one with rake and rip on it to soul swap) - otherwise awesome!
anyhow thanks! ill let u know how it works
*Edit*
Not working ..(Will this not work on a raiders dummy?)
this is what i changed:
PHP Code:
local unitguid = (UnitGUID("target") or 0)
local EnemyHP = 100 * UnitHealth("target") / UnitHealthMax("target")
if unitguid ~= UnitGUID("target") then
unitguid = UnitGUID("target")
if EnemyHP > 50 and (not UnitDebuffID("target",1822) or not UnitDebuffID("target",1079)) then
return true
elseif unitguid == 0
return false
end
end
end
Also can I just use castspellbyname and getspellcooldown instead of using the box on the lower left for recast delay and spell id? Or will that not work since i cannot skip unknown and this is only a spell obtainable when symbiosis is cast on the particular class.
I want to do this for all class symbiosis combinations, so if that's possible then awesome.
*Edit 2 - apparently you cannot use the lower left box for symbiosis. When i added in castbyspellname instead, it works. (Tested with Feral Spirit Wolves from shaman) I have yet to test this revision for Soul Swap as I dont have a lock to give symbiosis to.