diff options
author | malufett <malufett.eat.my.binaries@gmail.com> | 2014-10-30 22:52:08 +0800 |
---|---|---|
committer | malufett <malufett.eat.my.binaries@gmail.com> | 2014-10-30 22:52:08 +0800 |
commit | 72e18cdf9b612c476dd9ab2d45394c5e882e7dd1 (patch) | |
tree | 8926a1fab317842d999689e34dcbb79054e32210 | |
parent | c5173e0a294b653d0781851e6bb1d09d54cc6085 (diff) | |
download | hercules-72e18cdf9b612c476dd9ab2d45394c5e882e7dd1.tar.gz hercules-72e18cdf9b612c476dd9ab2d45394c5e882e7dd1.tar.bz2 hercules-72e18cdf9b612c476dd9ab2d45394c5e882e7dd1.tar.xz hercules-72e18cdf9b612c476dd9ab2d45394c5e882e7dd1.zip |
Fixed Bug#8012
-http://hercules.ws/board/tracker/issue-8012-bonus-bvariablecastrate-and-bfixedcastrate-not-working-properly/?gopid=21893#entry21893
Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
-rw-r--r-- | src/map/pc.c | 4 | ||||
-rw-r--r-- | src/map/skill.c | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 840891054..f07858ca6 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -3102,11 +3102,11 @@ int pc_bonus2(struct map_session_data *sd,int type,int type2,int val) } if(sd->skillfixcastrate[i].id == type2) - sd->skillfixcastrate[i].val += val; + sd->skillfixcastrate[i].val -= val; else { sd->skillfixcastrate[i].id = type2; - sd->skillfixcastrate[i].val = val; + sd->skillfixcastrate[i].val -= val; } break; diff --git a/src/map/skill.c b/src/map/skill.c index 42aae546d..f762c4b41 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -14316,9 +14316,8 @@ int skill_vfcastfix(struct block_list *bl, double time, uint16 skill_id, uint16 break; } for( i = 0; i < ARRAYLENGTH(sd->skillfixcastrate) && sd->skillfixcastrate[i].id; i++ ) - if( sd->skillfixcastrate[i].id == skill_id ){ // bonus2 bFixedCastrate - fixcast_r = sd->skillfixcastrate[i].val; // just speculation + fixcast_r = sd->skillfixcastrate[i].val; break; } } |