summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-19 16:41:56 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-19 16:41:56 +0000
commit5161d6894dc0afd8fd4a6380ddbb179da3d72623 (patch)
treee66cef5b0034a690ddc87ff747fae0bc87fb87c4 /src/map/battle.c
parent212094474d5124cc805d825cc54f9ff67fde338a (diff)
downloadhercules-5161d6894dc0afd8fd4a6380ddbb179da3d72623.tar.gz
hercules-5161d6894dc0afd8fd4a6380ddbb179da3d72623.tar.bz2
hercules-5161d6894dc0afd8fd4a6380ddbb179da3d72623.tar.xz
hercules-5161d6894dc0afd8fd4a6380ddbb179da3d72623.zip
- Corected the SC_MIRACLE + Anger code using the wrong skill level to calculate damage bonus.
- Corrected SC_MIRACLE to trigger Bless of the Stars on all defeated mobs. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11950 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 759b88f83..f9dbb636e 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -1763,8 +1763,8 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo
if (sc && sc->data[SC_MIRACLE]) i = 2; //Star anger
else
- ARR_FIND(0, 3, i, t_class == sd->hate_mob[i] && (skill=pc_checkskill(sd,sg_info[i].anger_id)));
- if (i < 3)
+ ARR_FIND(0, 3, i, t_class == sd->hate_mob[i]);
+ if (i < 3 && (skill=pc_checkskill(sd,sg_info[i].anger_id)))
{
skillratio = sd->status.base_level + sstatus->dex + sstatus->luk;
if (i == 2) skillratio += sstatus->str; //Star Anger