summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorJedzkie <jedzkie13@rocketmail.com>2015-12-23 14:10:12 +0800
committerJedzkie <jedzkie13@rocketmail.com>2015-12-23 14:10:12 +0800
commit5954bf53cac41cac2fd1eb3bb3d91783f0f9644e (patch)
tree6fb8a16fbdd603372cd8934ce80c2b9f7dfd5266 /src/map/battle.c
parent23b06569296e0f0f791f110df9723f27c60e65a3 (diff)
downloadhercules-5954bf53cac41cac2fd1eb3bb3d91783f0f9644e.tar.gz
hercules-5954bf53cac41cac2fd1eb3bb3d91783f0f9644e.tar.bz2
hercules-5954bf53cac41cac2fd1eb3bb3d91783f0f9644e.tar.xz
hercules-5954bf53cac41cac2fd1eb3bb3d91783f0f9644e.zip
Item Update:
- Remove the hard coded entry of Monster Transform Scrolls - Change mob names into mob constants.
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index b19e13438..88037b042 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -4905,7 +4905,7 @@ struct Damage battle_calc_weapon_attack(struct block_list *src,struct block_list
if(flag.cri && sd->bonus.crit_atk_rate)
ATK_ADDRATE(sd->bonus.crit_atk_rate);
if(flag.cri && sc && sc->data[SC_MTF_CRIDAMAGE])
- ATK_ADDRATE(25);// temporary it should be 'bonus.crit_atk_rate'
+ ATK_ADDRATE(sc->data[SC_MTF_CRIDAMAGE]->val1);// temporary it should be 'bonus.crit_atk_rate'
#ifndef RENEWAL
if(sd->status.party_id && (temp=pc->checkskill(sd,TK_POWER)) > 0){
@@ -5218,7 +5218,7 @@ struct Damage battle_calc_weapon_attack(struct block_list *src,struct block_list
if( wd.flag&BF_LONG )
ATK_ADDRATE(sd->bonus.long_attack_atk_rate);
if( sc && sc->data[SC_MTF_RANGEATK] )
- ATK_ADDRATE(25);// temporary it should be 'bonus.long_attack_atk_rate'
+ ATK_ADDRATE(sc->data[SC_MTF_RANGEATK]->val1);// temporary it should be 'bonus.long_attack_atk_rate'
#endif
if( (i=pc->checkskill(sd,AB_EUCHARISTICA)) > 0 &&
(tstatus->race == RC_DEMON || tstatus->def_ele == ELE_DARK) )