summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorMichieru <Michieru@users.noreply.github.com>2014-06-06 14:52:16 +0200
committerMichieru <Michieru@users.noreply.github.com>2014-06-06 14:52:16 +0200
commit197d401dc57fd4c02009915816354b2205f17654 (patch)
treec9b3cc517c3d36ce2b10e4909581d414f21a4a5a /src/map/battle.c
parent17382d380c0476ffc5616d8e34b299c4bc485be7 (diff)
downloadhercules-197d401dc57fd4c02009915816354b2205f17654.tar.gz
hercules-197d401dc57fd4c02009915816354b2205f17654.tar.bz2
hercules-197d401dc57fd4c02009915816354b2205f17654.tar.xz
hercules-197d401dc57fd4c02009915816354b2205f17654.zip
Fix bug 8225
http://hercules.ws/board/tracker/issue-8225-gentle-touch-revitalize/ Complete Sorcerer Elemental Skills.
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 810bebae9..6d1a98b54 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -2621,8 +2621,7 @@ int64 battle_calc_damage(struct block_list *src,struct block_list *bl,struct Dam
}
}
- if(sc->data[SC_ZEPHYR] &&
- flag&(BF_LONG|BF_SHORT)){
+ if( sc->data[SC_ZEPHYR] && ((flag&BF_LONG) || rand()%100 < 10) ) {
d->dmg_lv = ATK_BLOCK;
return 0;
}