an extended funtion for Lua to convert Skill to TriggerSkill