summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index a2b337e6a..e2bbe6707 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -8114,11 +8114,6 @@ int skill_check_condition_castbegin(struct map_session_data* sd, short skill, sh
return 1;
}
- if(pc_is90overweight(sd)) {
- clif_skill_fail(sd,skill,9,0);
- return 0;
- }
-
if( sd->menuskill_id == AM_PHARMACY )
{
switch( skill )
@@ -8164,6 +8159,12 @@ int skill_check_condition_castbegin(struct map_session_data* sd, short skill, sh
return 1;
}
+ if( pc_is90overweight(sd) )
+ {
+ clif_skill_fail(sd,skill,9,0);
+ return 0;
+ }
+
switch( skill )
{ // Turn off check.
case BS_MAXIMIZE: case NV_TRICKDEAD: case TF_HIDING: case AS_CLOAKING: case CR_AUTOGUARD:
@@ -8600,12 +8601,6 @@ int skill_check_condition_castend(struct map_session_data* sd, short skill, shor
return 1;
}
- if( pc_is90overweight(sd) )
- {
- clif_skill_fail(sd,skill,9,0);
- return 0;
- }
-
if( sd->menuskill_id == AM_PHARMACY )
{ // Cast start or cast end??
switch( skill )
@@ -8623,6 +8618,12 @@ int skill_check_condition_castend(struct map_session_data* sd, short skill, shor
if( sd->skillitem == skill ) // Casting finished (Item skill or Hocus-Pocus)
return 1;
+ if( pc_is90overweight(sd) )
+ {
+ clif_skill_fail(sd,skill,9,0);
+ return 0;
+ }
+
// perform skill-specific checks (and actions)
switch( skill )
{