summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorediejohnny <ediejohnny@54d463be-8e91-2dee-dedb-b68131a5f0ec>2013-01-02 00:20:43 +0000
committerediejohnny <ediejohnny@54d463be-8e91-2dee-dedb-b68131a5f0ec>2013-01-02 00:20:43 +0000
commit063d2e1d4f802a4379bef408ce968a49d209f90f (patch)
tree7c5fb0913419bc38fbbc3563db3d593230ca6b6e /src/map/battle.c
parentf4c35af23fcdf700a7f891e8707a72e0e48cfa1c (diff)
downloadhercules-063d2e1d4f802a4379bef408ce968a49d209f90f.tar.gz
hercules-063d2e1d4f802a4379bef408ce968a49d209f90f.tar.bz2
hercules-063d2e1d4f802a4379bef408ce968a49d209f90f.tar.xz
hercules-063d2e1d4f802a4379bef408ce968a49d209f90f.zip
Modified the formula of the Ice Pick, it was def1+vit_def, but according to iROWiki, it's Hard Def/2, so, def1/2 now.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17071 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 019a6315b..d6bcc6060 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -3230,12 +3230,12 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo
/**
* RE DEF Reduction
* Damage = Attack * (4000+eDEF)/(4000+eDEF) - sDEF
- * Icepick no longer bypasses defense, but gains 1 atk per def
+ * Icepick no longer bypasses defense, but gains 1 atk per def/2
**/
ATK_ADD2(
- flag.pdef ?(def1+vit_def):0,
- flag.pdef2?(def1+vit_def):0
+ flag.pdef ?(def1/2):0,
+ flag.pdef2?(def1/2):0
);
if( !flag.idef )
wd.damage = wd.damage * (4000+def1) / (4000+10*def1) - vit_def;