Hi there,
I've tried the following on a WOTLK 3.3.5a private server:
// Interrupt with Wind Shear
if (WindShear.KnownSpell && WindShear.IsSpellUsable && ObjectManager.Target.CanInterruptCasting)
{
WindShear.Launch();
return;
}
But it doesn't use Wind Shear on interruptible spells. If I log a check of ObjectManager.Target.CanInterruptCasting it says "false" - am I using it correctly?
I even wrote my own check which returns false as well!
private bool SpellIsInterruptible()
{
return Lua.LuaDoString<bool>(
@"isinterruptible = false;
local name, _, _, _, _, _, _, notInterruptible = UnitCastingInfo(""target"");
if not name then
local name, _, _, _, _, _, notInterruptible = UnitChannelInfo(""target"");
end
if name and not notInterruptible then
isinterruptible = true;
end
", "isinterruptible");
}
Regards
Ofrex35