We want to make a command that executes a skill with target
But the problem is that the skill makes itself because the command
Any idea?
atcommand.c
/*==========================================
* @asesinar (asesinar)
*------------------------------------------*/
ACMD_FUNC(asesinar)
{
struct map_session_data *pl_sd = sd;
struct block_list *bl;
nullpo_retr(-1, sd);
bl = &sd->bl;
if (skill_get_inf(1023)&INF_GROUND_SKILL)
unit_skilluse_pos(bl, pl_sd->bl.x, pl_sd->bl.y, 1023, 1);
else
unit_skilluse_id(bl, pl_sd->bl.id, 1023, 1);
return 0;
}
skill.c
case CM_ASESINAR:
clif_skill_nodamage(src,bl,skillid,skilllv,1);
break;