summaryrefslogtreecommitdiff
path: root/src/emap/skill.c
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-04-26 12:11:18 -0300
committerJesusaves <cpntb1@ymail.com>2020-04-26 12:11:18 -0300
commitfd90aa5bbfa75f4d995e92b10a93ce7ac11e05ba (patch)
treed4b7ed5abf5482d964a174392247a8b0bcb140b6 /src/emap/skill.c
parent541d4d8b90907d0657855fc5ea3b2626dd2ac16b (diff)
downloadplugin-jesusalva/guildskill1.tar.gz
plugin-jesusalva/guildskill1.tar.bz2
plugin-jesusalva/guildskill1.tar.xz
plugin-jesusalva/guildskill1.zip
Diffstat (limited to 'src/emap/skill.c')
-rw-r--r--src/emap/skill.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/emap/skill.c b/src/emap/skill.c
index 20e4a82..57319ea 100644
--- a/src/emap/skill.c
+++ b/src/emap/skill.c
@@ -259,3 +259,23 @@ void eskill_validate_additional_fields(struct config_setting_t *conf,
skilld->miscEffects[1] = i32;
}
}
+int eskill_check_condition_castbegin_pre(struct map_session_data **sd,
+ uint16 *skill_id,
+ uint16 *skill_lv __attribute__ ((unused)))
+{
+ ShowWarning("calling skill");
+ if( pc_is90overweight(*sd) ) {
+ clif->skill_fail(*sd, *skill_id, USESKILL_FAIL_WEIGHTOVER, 0, 0);
+ return 0;
+ }
+ switch( *skill_id ) {
+ case GD_BATTLEORDER:
+ case GD_REGENERATION:
+ case GD_RESTORE:
+ ShowWarning("STOP");
+ hookStop();
+ return 1;
+ }
+ ShowWarning("continue");
+ return 0;
+}