summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-06-25 20:42:56 +0200
committerGitHub <noreply@github.com>2018-06-25 20:42:56 +0200
commit13d0d8cfb5e37e1e4f1842c247844c3fc736c02f (patch)
tree48cf0d0cb2e85413628e9616d5ddb28c13bf2c2b /src/map/skill.c
parent9694bd186896b75ba74f86e6d6c169d0ee97062c (diff)
parent091f6a8f923552e2b9a7e789a4ba9b549e5816cd (diff)
downloadhercules-13d0d8cfb5e37e1e4f1842c247844c3fc736c02f.tar.gz
hercules-13d0d8cfb5e37e1e4f1842c247844c3fc736c02f.tar.bz2
hercules-13d0d8cfb5e37e1e4f1842c247844c3fc736c02f.tar.xz
hercules-13d0d8cfb5e37e1e4f1842c247844c3fc736c02f.zip
Merge pull request #2076 from dastgirp/3-skill_plugin
Plugin function ReturnType fix
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 6eacde897..34c36d7f3 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -15027,8 +15027,9 @@ int skill_check_condition_castend(struct map_session_data* sd, uint16 skill_id,
}
break;
default:
- skill->check_condition_castend_unknown(sd, &skill_id, &skill_lv);
- break;
+ if (!skill->check_condition_castend_unknown(sd, &skill_id, &skill_lv))
+ break;
+ return 0;
}
st = &sd->battle_status;
@@ -15115,8 +15116,9 @@ int skill_check_condition_castend(struct map_session_data* sd, uint16 skill_id,
return 1;
}
-void skill_check_condition_castend_unknown(struct map_session_data* sd, uint16 *skill_id, uint16 *skill_lv)
+bool skill_check_condition_castend_unknown(struct map_session_data* sd, uint16 *skill_id, uint16 *skill_lv)
{
+ return false;
}
// type&2: consume items (after skill was used)