summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-02-10 17:17:32 -0200
committershennetsind <ind@henn.et>2014-02-10 17:17:32 -0200
commit64344c36a7669051e30d7ecd141f19222e2889bb (patch)
tree81ac5972b8588d80e5de77ec96ff12c300c2c623 /src/map/skill.c
parent186fbc51d1254c9de712719a22b60f38d2a2cf60 (diff)
parent1e1b4a6a9286348192e6dcf22b816c01bc6f57b0 (diff)
downloadhercules-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.c6
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