|
@@ -12197,10 +12197,6 @@ void clif_parse_skill_toid( struct map_session_data* sd, uint16 skill_id, uint16
|
|
|
if (inf&INF_GROUND_SKILL || !inf)
|
|
|
return; //Using a ground/passive skill on a target? WRONG.
|
|
|
|
|
|
- // Whether skill fails or not is irrelevant, the char ain't idle. [Skotlex]
|
|
|
- if (battle_config.idletime_option&IDLE_USESKILLTOID)
|
|
|
- sd->idletime = last_tick;
|
|
|
-
|
|
|
if( SKILL_CHK_HOMUN(skill_id) ) {
|
|
|
clif_parse_UseSkillToId_homun(sd->hd, sd, tick, skill_id, skill_lv, target_id);
|
|
|
return;
|
|
@@ -12211,6 +12207,11 @@ void clif_parse_skill_toid( struct map_session_data* sd, uint16 skill_id, uint16
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ // Whether skill fails or not is irrelevant, the char ain't idle. [Skotlex]
|
|
|
+ // This is done here, because homunculi and mercenaries can be triggered by AI and not by the player itself
|
|
|
+ if (battle_config.idletime_option&IDLE_USESKILLTOID)
|
|
|
+ sd->idletime = last_tick;
|
|
|
+
|
|
|
if( sd->npc_id ){
|
|
|
if( pc_hasprogress( sd, WIP_DISABLE_SKILLITEM ) || !sd->npc_item_flag || !( inf & INF_SELF_SKILL ) ){
|
|
|
#ifdef RENEWAL
|