diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-05 17:57:37 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-05 17:57:37 +0000 |
commit | babf9653c5dd6ec37bc859665d3becf114962afc (patch) | |
tree | b910604c67110ee501d4b3a0b36fb99c473c1da2 /src/map/battle.c | |
parent | d99c0313edbb4bd24172f825b7d621ad620ec7d1 (diff) | |
download | hercules-babf9653c5dd6ec37bc859665d3becf114962afc.tar.gz hercules-babf9653c5dd6ec37bc859665d3becf114962afc.tar.bz2 hercules-babf9653c5dd6ec37bc859665d3becf114962afc.tar.xz hercules-babf9653c5dd6ec37bc859665d3becf114962afc.zip |
- /doridori now won't double the HP/SP regen of TKs, it only activates their "happy" state.
- Added the -50 hit penalty when standing on Wall of Fog.
- Cleaned up status_calc_mdef2
- Uncommented the status_calc_mdef2 call in status_calc_pc.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6491 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index db2b8be3f..0bb50eb76 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -1304,7 +1304,10 @@ static struct Damage battle_calc_weapon_attack( }
hitrate+= status_get_hit(src) - flee;
-
+
+ if((sc && sc->data[SC_FOGWALL].timer!=-1) || (tsc && tsc->data[SC_FOGWALL].timer!=-1))
+ hitrate-=50;
+
if(sd && flag.arrow)
hitrate += sd->arrow_hit;
if(skill_num)
|