diff options
author | ignizh <ignizh@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-07-10 03:48:06 +0000 |
---|---|---|
committer | ignizh <ignizh@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-07-10 03:48:06 +0000 |
commit | 4cc3bd77b866af7c809ca4d82928011af62eed08 (patch) | |
tree | d62a15b520fc3d168fabc4934d0237d5cf2d1837 /src/map/battle.c | |
parent | 85141e44e7991ce33199a1ada5a90b6bbf2d6b88 (diff) | |
download | hercules-4cc3bd77b866af7c809ca4d82928011af62eed08.tar.gz hercules-4cc3bd77b866af7c809ca4d82928011af62eed08.tar.bz2 hercules-4cc3bd77b866af7c809ca4d82928011af62eed08.tar.xz hercules-4cc3bd77b866af7c809ca4d82928011af62eed08.zip |
Fixed bugreport:6175 | Assumptio now doubles def & mdef on RE mode.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16386 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index bbed08be6..20b8fa3dc 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -614,12 +614,15 @@ int battle_calc_damage(struct block_list *src,struct block_list *bl,struct Damag //Finally damage reductions.... + // Assumptio doubles the def & mdef on RE mode, otherwise gives a reduction on the final damage. [Igniz] +#ifndef RENEWAL if( sc->data[SC_ASSUMPTIO] ) { if( map_flag_vs(bl->m) ) damage = damage*2/3; //Receive 66% damage else damage >>= 1; //Receive 50% damage } +#endif if(sc->data[SC_DEFENDER] && (flag&(BF_LONG|BF_WEAPON)) == (BF_LONG|BF_WEAPON)) |