summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorDastgir Pojee <dastgirp@gmail.com>2016-10-02 21:08:34 +0530
committerhemagx <ibrahem.h.basyone@gmail.com>2016-10-22 02:21:52 +0200
commit72cd2379541e67f1fbb3fd88132cbabb61874647 (patch)
treecf2ee7cc1afde38e328771d3eeaa96a481696645 /src/map/battle.c
parent7b270b403ea24811305631d55da5f9d30252ca85 (diff)
downloadhercules-72cd2379541e67f1fbb3fd88132cbabb61874647.tar.gz
hercules-72cd2379541e67f1fbb3fd88132cbabb61874647.tar.bz2
hercules-72cd2379541e67f1fbb3fd88132cbabb61874647.tar.xz
hercules-72cd2379541e67f1fbb3fd88132cbabb61874647.zip
Implemented SU_STOOP Skill.
Reduces Incoming Damange by 90% for 6 seconds. When Knock Back, the effect disappears.
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 538f47bb0..37e06a6ba 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -3077,6 +3077,9 @@ int64 battle_calc_damage(struct block_list *src,struct block_list *bl,struct Dam
damage -= 50 * damage / 100;//50% reduction to physical ranged attacks
}
+ if (sc->data[SC_SU_STOOP])
+ damage -= damage * 90 / 100;
+
// Compressed code, fixed by map.h [Epoque]
if (src->type == BL_MOB) {
const struct mob_data *md = BL_UCCAST(BL_MOB, src);