summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorxantara <xantara@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-18 21:24:53 +0000
committerxantara <xantara@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-18 21:24:53 +0000
commit55cb028a87b11bd7cbc06a3fcdba4f77032fa6c6 (patch)
treed3285528cbc1e2c7a17baeed6427b5d9274ce8fb /src/map
parent06ec4b33746917093e146d81e6742d80868d1fa0 (diff)
downloadhercules-55cb028a87b11bd7cbc06a3fcdba4f77032fa6c6.tar.gz
hercules-55cb028a87b11bd7cbc06a3fcdba4f77032fa6c6.tar.bz2
hercules-55cb028a87b11bd7cbc06a3fcdba4f77032fa6c6.tar.xz
hercules-55cb028a87b11bd7cbc06a3fcdba4f77032fa6c6.zip
Follow up r16292 - Fixed Turn Undead renewal formula on failure (bugreport:6054)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16317 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/battle.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 9d884e43e..488a1d38e 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -3275,11 +3275,11 @@ struct Damage battle_calc_magic_attack(struct block_list *src,struct block_list
if(rnd()%1000 < i && !(tstatus->mode&MD_BOSS))
ad.damage = tstatus->hp;
else {
- #ifdef RENEWAL
- ad.damage = status_get_lv(src) * (sstatus->matk_min + sstatus->matk_max);
- #else
- ad.damage = status_get_lv(src) + sstatus->int_ + skill_lv * 10;
- #endif
+ #ifdef RENEWAL
+ ad.damage = skill_lv * (sstatus->matk_min + sstatus->matk_max);
+ #else
+ ad.damage = status_get_lv(src) + sstatus->int_ + skill_lv * 10;
+ #endif
}
break;
case PF_SOULBURN: