diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-31 18:38:51 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-31 18:38:51 +0000 |
commit | 5af84391c50d5625c870d567e298b0628ba2a4ef (patch) | |
tree | 31be66ff396bfa41163836d3d4b5cf43dde58f5d /src/map/battle.c | |
parent | b3ff9c7c452aebec22005b2a3aa1e1d4e25ecf38 (diff) | |
download | hercules-5af84391c50d5625c870d567e298b0628ba2a4ef.tar.gz hercules-5af84391c50d5625c870d567e298b0628ba2a4ef.tar.bz2 hercules-5af84391c50d5625c870d567e298b0628ba2a4ef.tar.xz hercules-5af84391c50d5625c870d567e298b0628ba2a4ef.zip |
- Corrected a status_get_race call which should be status_get_race2 in misc attacks.
- Moved the Devotion code to the top of the SC list in status_damage, meaning that now stuff like being asleep or confused won't end if you are hit, but the damage is absorbed by devotion.
- Some cleanups in battle.c (replaced usage of status_get_* for status->*)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8009 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 562ac6ce3..9a2374882 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -823,7 +823,7 @@ static struct Damage battle_calc_weapon_attack( //Set miscellaneous data that needs be filled regardless of hit/miss if( (sd && sd->state.arrow_atk) || - (!sd && ((skill_num && skill_get_ammotype(skill_num)) || status_get_range(src)>3)) + (!sd && ((skill_num && skill_get_ammotype(skill_num)) || sstatus->rhw.range>3)) ) { wd.flag=(wd.flag&~BF_RANGEMASK)|BF_LONG; flag.arrow = 1; @@ -2114,7 +2114,7 @@ struct Damage battle_calc_magic_attack( //Initial Values ad.damage = 1; ad.div_=skill_get_num(skill_num,skill_lv); - ad.amotion=skill_get_inf(skill_num)&INF_GROUND_SKILL?0:status_get_amotion(src); //Amotion should be 0 for ground skills. + ad.amotion=skill_get_inf(skill_num)&INF_GROUND_SKILL?0:sstatus->amotion; //Amotion should be 0 for ground skills. ad.dmotion=tstatus->dmotion; ad.blewcount = skill_get_blewcount(skill_num,skill_lv); ad.flag=BF_MAGIC|BF_LONG|BF_SKILL; @@ -2663,7 +2663,7 @@ struct Damage battle_calc_misc_attack( if(md.damage && flag.cardfix && tsd){ int cardfix = 10000; - int race2 = status_get_race(src); + int race2 = status_get_race2(src); cardfix=cardfix*(100-tsd->subele[s_ele])/100; cardfix=cardfix*(100-tsd->subsize[sstatus->size])/100; cardfix=cardfix*(100-tsd->subrace2[race2])/100; |