summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorshadow <shadow@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-06-13 11:39:13 +0000
committershadow <shadow@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-06-13 11:39:13 +0000
commit304dbe79fc957d7fe757761a70ba0cd7a906d639 (patch)
treead411877badbc28c6e23687aab85ba71198deb3b /src/map/battle.c
parent8605b217a7e1c6ed424a8cdf6a987502e4cd6917 (diff)
downloadhercules-304dbe79fc957d7fe757761a70ba0cd7a906d639.tar.gz
hercules-304dbe79fc957d7fe757761a70ba0cd7a906d639.tar.bz2
hercules-304dbe79fc957d7fe757761a70ba0cd7a906d639.tar.xz
hercules-304dbe79fc957d7fe757761a70ba0cd7a906d639.zip
Fixed some skills working on undead element when they were supposed to work on undead race.
Skills Fixed: GrandCross, Dark GrandCross, Cure, Head Crush, Signum Crusis, Blessing, Demons Bane, Divine Protection. Skills needing confirmation: Magnus Exorcismus, Evil Land, Sanctuary, Status Recovery. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12820 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 a1f9f6e8b..348cd8ad0 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -614,7 +614,7 @@ int battle_addmastery(struct map_session_data *sd,struct block_list *target,int
nullpo_retr(0, sd);
if((skill = pc_checkskill(sd,AL_DEMONBANE)) > 0 &&
- (battle_check_undead(status->race,status->def_ele) || status->race==RC_DEMON) )
+ (status->race==RC_UNDEAD || status->race==RC_DEMON) )
damage += (skill*(int)(3+(sd->status.base_level+1)*0.05)); // submitted by orn
//damage += (skill * 3);
@@ -1713,7 +1713,7 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo
vit_def = def2*(def2-15)/150;
vit_def = def2/2 + (vit_def>0?rand()%vit_def:0);
- if((battle_check_undead(sstatus->race,sstatus->def_ele) || sstatus->race==RC_DEMON) &&
+ if((sstatus->race==RC_UNDEAD || sstatus->race==RC_DEMON) &&
src->type == BL_MOB && (skill=pc_checkskill(tsd,AL_DP)) > 0)
vit_def += skill*(int)(3 +(tsd->status.base_level+1)*0.04); // submitted by orn
} else { //Mob-Pet vit-eq