From 3117bb0eac0745a30b618099899bffd1f58badbd Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 18 Jul 2006 02:41:10 +0000 Subject: - Updated mob_db.sql to current mob_db.txt data. - Some cleaning on chrif.c - The char-server will allow off-line character saves when said char is tagged for final-save (this is the scenario when the char-map reconnect). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7722 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/battle.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/map/battle.c') diff --git a/src/map/battle.c b/src/map/battle.c index e47490ee6..280d4df77 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -761,7 +761,6 @@ static struct Damage battle_calc_weapon_attack( short i; struct map_session_data *sd, *tsd; - struct homun_data *hd; //[orn] struct Damage wd; struct status_change *sc = status_get_sc(src); struct status_change *tsc = status_get_sc(target); @@ -814,7 +813,6 @@ static struct Damage battle_calc_weapon_attack( BL_CAST(BL_PC, src, sd); BL_CAST(BL_PC, target, tsd); - BL_CAST(BL_HOMUNCULUS, src, hd); //[orn] if(sd) { if (sd->skillblown[0].id != 0) @@ -1181,7 +1179,8 @@ static struct Damage battle_calc_weapon_attack( break; } case HFLI_SBR44: //[orn] - if(hd){ + if(src->type == BL_HOMUNCULUS){ + TBL_HOMUNCULUS *hd = (TBL_HOMUNCULUS*)src; wd.damage = hd->master->homunculus.intimacy ; wd.damage2 = hd->master->homunculus.intimacy ; hd->master->homunculus.intimacy = 200; -- cgit v1.2.3-60-g2f50