diff options
author | csnv <ctt@csnv.es> | 2014-09-15 22:22:17 +0200 |
---|---|---|
committer | csnv <ctt@csnv.es> | 2014-09-15 22:22:17 +0200 |
commit | 50e1f6c0781df16026cd64bdd87f206295c4a8aa (patch) | |
tree | fa5e68e0a8d6e190faa923a3a00affc04d17bf00 /src/map/battle.c | |
parent | 67ccaac795f50e3727a995d6e33861287fc7365d (diff) | |
download | hercules-50e1f6c0781df16026cd64bdd87f206295c4a8aa.tar.gz hercules-50e1f6c0781df16026cd64bdd87f206295c4a8aa.tar.bz2 hercules-50e1f6c0781df16026cd64bdd87f206295c4a8aa.tar.xz hercules-50e1f6c0781df16026cd64bdd87f206295c4a8aa.zip |
Fixed song display, changed devotion conditions
- Fixed bug report http://hercules.ws/board/tracker/issue-8338-apple-of-iduns/?gopid=23558#entry23558
- Changes devotion check to work with reflect equipment of the target
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index 07a195503..fbc166874 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -5393,8 +5393,7 @@ void battle_reflect_damage(struct block_list *target, struct block_list *src, st sc = NULL; if( sc ) { - if (sc->data[SC_DEVOTION] && !(wd->flag & BF_SKILL)) - return; // No reflect for basic attacks on devoted characters + if (wd->flag & BF_SHORT && !(skill->get_inf(skill_id) & (INF_GROUND_SKILL | INF_SELF_SKILL))) { if( sc->data[SC_CRESCENTELBOW] && !is_boss(src) && rnd()%100 < sc->data[SC_CRESCENTELBOW]->val2 ){ @@ -5461,7 +5460,9 @@ void battle_reflect_damage(struct block_list *target, struct block_list *src, st if( wd->dmg_lv >= ATK_BLOCK ) {/* yes block still applies, somehow gravity thinks it makes sense. */ if( sc ) { - if( sc->data[SC_REFLECTSHIELD] && skill_id != WS_CARTTERMINATION && skill_id != GS_DESPERADO ) { + if( sc->data[SC_REFLECTSHIELD] && skill_id != WS_CARTTERMINATION && skill_id != GS_DESPERADO + && !(!(wd->flag&BF_SKILL) && sc->data[SC_DEVOTION]) + ) { NORMALIZE_RDAMAGE(damage * sc->data[SC_REFLECTSHIELD]->val2 / 100); #ifndef RENEWAL |