When a magic skill is casted on an enemy of my map_session_data *sd I can get both the skill id and target with sd->ud.skill_id and sd->ud.skill_target but this is not the case on a melee or ground targeted skill (it returns 0 with that method, for some reason).
How do I get both of those variables in those cases?
EDIT: Close this thread, I solved it.
Edited by Nardoth, 17 September 2016 - 08:30 PM.