cowdude
Active Member
- Joined
- Feb 17, 2010
- Messages
- 337
- Reaction score
- 27
I got some issues detecting spell procs like Decimation for warlocks or The Art of War.
Me.ActiveAuras won't list them, and all you can get is the PASSIVE aura which allow the given spell to proc.
Relying on LUA seems a nice workaround, even though it generates a few injection failed in the debug log. Here's the idea:
Me.ActiveAuras won't list them, and all you can get is the PASSIVE aura which allow the given spell to proc.
Relying on LUA seems a nice workaround, even though it generates a few injection failed in the debug log. Here's the idea:
PHP:
public string HAX_Aura(string name)
{
var lua = "return select(1, UnitBuff('player', \"{0}\"))";
var r = Lua.GetReturnVal<string>(string.Format(lua, name), 0);
if (r == null || r == "nil")
return string.Empty;
else
return r;
}
public bool HasAura (string name) { return HAX_Aura(name).Length > 0; }