I want to optimize my cast sequence for my Champion/Rogue so I've tried this
Code: Select all
<onSkillCast><![CDATA[
if arg1.Name == "CHAMPION_SHADOW_PULSE" then
local target = player:getTarget();
target:update()
if target.Alive then
player:cast("ROGUE_SHADOWSTAB")
elseif target.Lootable then
player:loot()
end
elseif arg1.Name == "ROGUE_THROW" then
local target = player:getTarget();
target:update()
if target.Alive then
player:cast("ROGUE_SHADOW_STEP")
player:cast("ROGUE_SHADOWSTAB")
elseif target.Lootable then
player:loot()
end
end
]]></onSkillCast>
Is it possible to check the targets HP (Alive) in onscillcast between cast-sequence?
thx in advance.