diff options
author | shennetsind <ind@henn.et> | 2014-02-10 17:17:32 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2014-02-10 17:17:32 -0200 |
commit | 64344c36a7669051e30d7ecd141f19222e2889bb (patch) | |
tree | 81ac5972b8588d80e5de77ec96ff12c300c2c623 /src/map/skill.c | |
parent | 186fbc51d1254c9de712719a22b60f38d2a2cf60 (diff) | |
parent | 1e1b4a6a9286348192e6dcf22b816c01bc6f57b0 (diff) | |
download | hercules-64344c36a7669051e30d7ecd141f19222e2889bb.tar.gz hercules-64344c36a7669051e30d7ecd141f19222e2889bb.tar.bz2 hercules-64344c36a7669051e30d7ecd141f19222e2889bb.tar.xz hercules-64344c36a7669051e30d7ecd141f19222e2889bb.zip |
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 9fedea85e..2c2ed0d6c 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -14012,6 +14012,12 @@ int skill_vfcastfix(struct block_list *bl, double time, uint16 skill_id, uint16 if( sd && !(skill->get_castnodex(skill_id, skill_lv)&4) ){ VARCAST_REDUCTION( max(sd->bonus.varcastrate, 0) + max(i, 0) ); fixcast_r = max(fixcast_r, sd->bonus.fixcastrate) + min(sd->bonus.fixcastrate,0); + for( i = 0; i < ARRAYLENGTH(sd->skillcast) && sd->skillcast[i].id; i++ ) + if( sd->skillcast[i].id == skill_id ){ // bonus2 bVariableCastrate + if( (i=sd->skillcast[i].val) > 0) + VARCAST_REDUCTION(i); + break; + } } if( varcast_r < 0 ) // now compute overall factors |