summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorgreenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-21 07:37:26 +0000
committergreenboxal2 <greenboxal2@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-04-21 07:37:26 +0000
commit3726e00c073550558fa9b954e1fd2b854bc787e3 (patch)
treec973a70b6c7e0ac007edc5fea6072ebe09a95480 /src/map/battle.c
parentdda9ac430f39fb36dc2d230632b7e449037f97f6 (diff)
downloadhercules-3726e00c073550558fa9b954e1fd2b854bc787e3.tar.gz
hercules-3726e00c073550558fa9b954e1fd2b854bc787e3.tar.bz2
hercules-3726e00c073550558fa9b954e1fd2b854bc787e3.tar.xz
hercules-3726e00c073550558fa9b954e1fd2b854bc787e3.zip
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
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c10
1 files changed, 10 insertions, 0 deletions
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] ) {