diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-10-03 05:11:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-10-21 04:21:52 +0300 |
commit | 6791b26d7865c38129abd80f8e8a6a62872238f4 (patch) | |
tree | 052bb7ba53e531bd55b23f99f4f90a9bf598035b /src/map/skill.c | |
parent | cbca28ee6bd38a7ab18fa6c34b4ed317f938b33f (diff) | |
download | hercules-6791b26d7865c38129abd80f8e8a6a62872238f4.tar.gz hercules-6791b26d7865c38129abd80f8e8a6a62872238f4.tar.bz2 hercules-6791b26d7865c38129abd80f8e8a6a62872238f4.tar.xz hercules-6791b26d7865c38129abd80f8e8a6a62872238f4.zip |
Add packets for 64 bit exp.
Also update some functions for support 64 bit exp calculation.
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index a84955377..a8ced2ccf 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -13832,8 +13832,8 @@ int skill_check_condition_castbegin(struct map_session_data* sd, uint16 skill_id break; case PR_REDEMPTIO: { - int exp; - if( ((exp = pc->nextbaseexp(sd)) > 0 && get_percentage64(sd->status.base_exp, exp) < 1) || + int64 exp; + if (((exp = pc->nextbaseexp(sd)) > 0 && get_percentage64(sd->status.base_exp, exp) < 1) || ((exp = pc->nextjobexp(sd)) > 0 && get_percentage64(sd->status.job_exp, exp) < 1)) { clif->skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0); //Not enough exp. return 0; |