summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2013-06-13 20:22:53 -0700
committerEuphy <euphy@rathena.org>2013-06-15 15:53:57 -0400
commitb4f450a2d213bab38b0d45e92ab5133a632f2c65 (patch)
treef4b2d4206dd8b255f25d4f17029e25f6649a0c40
parent0d48dcf7a1325f4f47f63820bc6e7a17924e2e9b (diff)
downloadhercules-b4f450a2d213bab38b0d45e92ab5133a632f2c65.tar.gz
hercules-b4f450a2d213bab38b0d45e92ab5133a632f2c65.tar.bz2
hercules-b4f450a2d213bab38b0d45e92ab5133a632f2c65.tar.xz
hercules-b4f450a2d213bab38b0d45e92ab5133a632f2c65.zip
Fixed Bug#7359
Map Crashed on battle_calc_return_damage.
-rw-r--r--src/map/battle.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 9fa4224f5..91733c945 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -5134,10 +5134,10 @@ int battle_calc_return_damage(struct block_list* bl, struct block_list *src, int
rdelay = clif->damage(src, src, iTimer->gettick(), status_get_amotion(src), status_get_dmotion(src), rdamage, 1, 4, 0);
}
}
- }
- if( sc->data[SC_SHIELDSPELL_DEF] && sc->data[SC_SHIELDSPELL_DEF]->val1 == 2 && !is_boss(src) ){
- NORMALIZE_RDAMAGE(damage * sc->data[SC_SHIELDSPELL_DEF]->val2 / 100);
- rdelay = clif->damage(src, src, iTimer->gettick(), status_get_amotion(src), status_get_dmotion(src), rdamage, 1, 4, 0);
+ if( sc->data[SC_SHIELDSPELL_DEF] && sc->data[SC_SHIELDSPELL_DEF]->val1 == 2 && !is_boss(src) ){
+ NORMALIZE_RDAMAGE(damage * sc->data[SC_SHIELDSPELL_DEF]->val2 / 100);
+ rdelay = clif->damage(src, src, iTimer->gettick(), status_get_amotion(src), status_get_dmotion(src), rdamage, 1, 4, 0);
+ }
}
} else {
if (sd && sd->bonus.long_weapon_damage_return){