From 3726e00c073550558fa9b954e1fd2b854bc787e3 Mon Sep 17 00:00:00 2001 From: greenboxal2 Date: Sat, 21 Apr 2012 07:37:26 +0000 Subject: Fixed bugreport:5494 missing renewal status for RG_RAID. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15900 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/battle.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/map/battle.c') diff --git a/src/map/battle.c b/src/map/battle.c index cea562661..86297f271 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -542,6 +542,16 @@ int battle_calc_damage(struct block_list *src,struct block_list *bl,struct Damag status_change_end(bl, SC_AETERNA, INVALID_TIMER); //Shouldn't end until Breaker's non-weapon part connects. } +#ifdef RENEWAL + if( sc->data[SC_RAID] ) + { + damage += 20*damage/100; + + if (--sc->data[SC_RAID]->val1 == 0) + status_change_end(bl, SC_RAID, INVALID_TIMER); + } +#endif + if( damage ) { if( sc->data[SC_DEEPSLEEP] ) { -- cgit v1.2.3-70-g09d2