12-08-2013, 04:53 AM
Is it currently possible to detect the spells of a given entity?
I dug into target.action to try and see if I could get the action name and so forth with the end result being able to say "Boss is casting:"..x.."move".
The wiki indicates that I could use something like this for getting an action information for a specific actionid:
I guess this works only for players? It doesn't seem to yield any usable results with regards to enemies.
Tested it out in WP and basically every cast for one boss would show up as ID 131, another was always 107, with it changing when the actual cast had happened.
Double checked against the devmonitor and it shows the same actionid so I guess I at least have that part correct.
Is there any reliable way to pull the spell an enemy is currently casting or is this impossible?
I dug into target.action to try and see if I could get the action name and so forth with the end result being able to say "Boss is casting:"..x.."move".
The wiki indicates that I could use something like this for getting an action information for a specific actionid:
Code:
local action = ActionList:Get(tostring(target.action))
if ( action and action~=nil ) then
d("ID:"..tostring(action.id).." Name:"..tostring(action.name).." CastTime:"..tostring(action.casttime))
end
I guess this works only for players? It doesn't seem to yield any usable results with regards to enemies.
Tested it out in WP and basically every cast for one boss would show up as ID 131, another was always 107, with it changing when the actual cast had happened.
Double checked against the devmonitor and it shows the same actionid so I guess I at least have that part correct.
Is there any reliable way to pull the spell an enemy is currently casting or is this impossible?