summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-06-29 12:47:21 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-06-29 12:47:21 +0000
commitf53414bdbfa5f1364aec6a9ddbef8287e544aad9 (patch)
tree8d6d4c74c9ad8ae387ea219e734bfb33240b4558 /src/map
parent572bb8a1a98bc8863a92d944af0f6e47408dd3b4 (diff)
downloadhercules-f53414bdbfa5f1364aec6a9ddbef8287e544aad9.tar.gz
hercules-f53414bdbfa5f1364aec6a9ddbef8287e544aad9.tar.bz2
hercules-f53414bdbfa5f1364aec6a9ddbef8287e544aad9.tar.xz
hercules-f53414bdbfa5f1364aec6a9ddbef8287e544aad9.zip
* Fixed attack not counted as connect when dodged and got damage from skill bonus like Weaponry Research.
* Corrected the description for vit_penalty_type. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13918 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/battle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 505d37373..3e0a9556e 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -2790,6 +2790,8 @@ struct Damage battle_calc_attack(int attack_type,struct block_list *bl,struct bl
d.dmg_lv = ATK_MISS;
d.dmotion = 0;
}
+ else // Some skills like Weaponry Research will cause damage even if attack is dodged
+ d.dmg_lv = ATK_DEF;
return d;
}