summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorVicious <Vicious@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-30 15:48:12 +0000
committerVicious <Vicious@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-30 15:48:12 +0000
commitc21ff61bc4364cd79a24e788beacd0fcb8c5cc30 (patch)
treea3a16ceb59c88ff319cc0453c6a18fdb7b95c7f6 /src/map/battle.c
parenta3d6c7f96996ba1eaa689dd14d7369a4116b1c42 (diff)
downloadhercules-c21ff61bc4364cd79a24e788beacd0fcb8c5cc30.tar.gz
hercules-c21ff61bc4364cd79a24e788beacd0fcb8c5cc30.tar.bz2
hercules-c21ff61bc4364cd79a24e788beacd0fcb8c5cc30.tar.xz
hercules-c21ff61bc4364cd79a24e788beacd0fcb8c5cc30.zip
GS Skill updates/fixes
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7979 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 4c3edf5c1..27f926c33 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -350,6 +350,10 @@ int battle_calc_damage(struct block_list *src,struct block_list *bl,int damage,i
(flag&(BF_LONG|BF_WEAPON)) == (BF_LONG|BF_WEAPON))
damage=damage*(100-sc->data[SC_DEFENDER].val2)/100;
+ if(sc->data[SC_ADJUSTMENT].timer != -1 &&
+ (flag&(BF_LONG|BF_WEAPON)) == (BF_LONG|BF_WEAPON))
+ damage=damage*80/100;
+
if(sc->data[SC_FOGWALL].timer != -1) {
if(flag&BF_SKILL) //25% reduction
damage -= 25*damage/100;