summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-02-21 12:12:56 -0300
committershennetsind <ind@henn.et>2014-02-21 12:12:56 -0300
commit4dcdab23a2c8389c3c9dc62e6a898d66a3fcfcb5 (patch)
tree30dca4a9851bc1cb32a76dc84fd99d0fb4832c30 /src/map/battle.c
parentc080576a034acfb24f988dccdf1d474a7184cf59 (diff)
downloadhercules-4dcdab23a2c8389c3c9dc62e6a898d66a3fcfcb5.tar.gz
hercules-4dcdab23a2c8389c3c9dc62e6a898d66a3fcfcb5.tar.bz2
hercules-4dcdab23a2c8389c3c9dc62e6a898d66a3fcfcb5.tar.xz
hercules-4dcdab23a2c8389c3c9dc62e6a898d66a3fcfcb5.zip
Follow up 6f264513874c80b912f47dbad1ec0347c67534e7
Adjusted SC_INSPIRATION, I accidentally swapped target and src when I was converting it to the new reflect damage stuff Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index ce861aa7e..e9e17708c 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -5415,11 +5415,12 @@ void battle_reflect_damage(struct block_list *target, struct block_list *src, st
if( ssc->data[SC_INSPIRATION] ) {
NORMALIZE_RDAMAGE(damage / 100);
- rdelay = clif->delay_damage(tick+delay,src, src, status_get_amotion(src), status_get_dmotion(src), rdamage, 1, 4);
+ rdelay = clif->delay_damage(tick+delay,target, target, status_get_amotion(target), status_get_dmotion(target), rdamage, 1, 4);
/* is this right? rdamage as both left and right? */
- battle->drain(tsd, src, rdamage, rdamage, status_get_race(src), 0);
- battle->delay_damage(tick, wd->amotion,target,src,0,CR_REFLECTSHIELD,0,rdamage,ATK_DEF,rdelay,true);
+ if( sd )
+ battle->drain(sd, target, rdamage, rdamage, status_get_race(target), 0);
+ battle->delay_damage(tick, wd->amotion,src,target,0,CR_REFLECTSHIELD,0,rdamage,ATK_DEF,rdelay,true);
delay += 100;/* gradual increase so the numbers don't clip in the client */
}