From ff6317b65b37c6439076afd810193baf893b3611 Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 18 Jul 2006 13:25:21 +0000 Subject: - Added a proper check to make aggressive mobs never override homun targets regardless of distance. - Removed a bunch of homun-related variables that are not needed at all. The alive condition is removed, now the code checks for the hp value to know if the homun is alive or not. - Cleaned up a bit the skill-id function, homun skill checks (such as delay and skill-lv learned) should be correct now. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7727 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/atcommand.c') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 9a333892b..29b055687 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -9460,7 +9460,7 @@ int atcommand_homlevel( if (!message || !*message) return -1; - if ( sd->status.hom_id == 0 || !sd->homunculus.alive || sd->homunculus.vaporize ) + if ( sd->status.hom_id == 0 || !sd->homunculus.hp || sd->homunculus.vaporize ) return 1 ; level = atoi(message); @@ -9587,7 +9587,7 @@ int atcommand_homtalk( nullpo_retr(-1, sd); - if(!sd->status.hom_id || !sd->hd || !sd->homunculus.alive ) + if(!sd->status.hom_id || !sd->hd || !sd->homunculus.hp) return -1; if (sscanf(message, "%99[^\n]", mes) < 1) -- cgit v1.2.3-70-g09d2