summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2014-02-10 18:21:39 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2014-02-10 18:21:39 +0800
commitac45ebca3e9537eca665ba042412ddc1e65e9f73 (patch)
treeaec6a9fee1b5392acaab4edfa544d37eb702b98c /src/map/battle.c
parentc178a5b337d66f8f15b7f2e1cd395b9da5ca5999 (diff)
downloadhercules-ac45ebca3e9537eca665ba042412ddc1e65e9f73.tar.gz
hercules-ac45ebca3e9537eca665ba042412ddc1e65e9f73.tar.bz2
hercules-ac45ebca3e9537eca665ba042412ddc1e65e9f73.tar.xz
hercules-ac45ebca3e9537eca665ba042412ddc1e65e9f73.zip
Fixed Bug#7933
-http://hercules.ws/board/tracker/issue-7933-sonic-blow/?gopid=21551#entry21551 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Diffstat (limited to 'src/map/battle.c')
-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 e56e3d12d..687db1b95 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -2498,12 +2498,14 @@ int battle_calc_skillratio(int attack_type, struct block_list *src, struct block
}
//Skill damage modifiers that stack linearly
if(sc && skill_id != PA_SACRIFICE){
+#ifdef RENEWAL_EDP
if( sc->data[SC_EDP] ){
if( skill_id == AS_SONICBLOW ||
skill_id == GC_COUNTERSLASH ||
skill_id == GC_CROSSIMPACT )
skillratio >>= 1;
}
+#endif
if(sc->data[SC_OVERTHRUST])
skillratio += sc->data[SC_OVERTHRUST]->val3;
if(sc->data[SC_OVERTHRUSTMAX])