diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-07-03 16:32:42 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-07-03 16:32:42 +0000 |
commit | 7bf03ed1039703fa0ede1a825bf42f00de06eeac (patch) | |
tree | 033bd24f19c9d762f6403a2484cf735d32723cb3 /src/map/mercenary.c | |
parent | bff8a4273ec7cedd86b95055278be824ff566f98 (diff) | |
download | hercules-7bf03ed1039703fa0ede1a825bf42f00de06eeac.tar.gz hercules-7bf03ed1039703fa0ede1a825bf42f00de06eeac.tar.bz2 hercules-7bf03ed1039703fa0ede1a825bf42f00de06eeac.tar.xz hercules-7bf03ed1039703fa0ede1a825bf42f00de06eeac.zip |
Made Homunculus Resurrection only fail on cast-end (see topic:155223)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10845 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mercenary.c')
-rw-r--r-- | src/map/mercenary.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/map/mercenary.c b/src/map/mercenary.c index 4f39607b1..0da771e5b 100644 --- a/src/map/mercenary.c +++ b/src/map/mercenary.c @@ -735,12 +735,13 @@ int merc_create_homunculus_request(struct map_session_data *sd, int class_) return 1; } -int merc_resurrect_homunculus(struct map_session_data *sd, unsigned char per, short x, short y) +int merc_resurrect_homunculus(struct map_session_data* sd, unsigned char per, short x, short y) { - struct homun_data *hd; + struct homun_data* hd; nullpo_retr(0, sd); + if (!sd->status.hom_id) - return 0; + return 0; // no homunculus if (!sd->hd) //Load homun data; return intif_homunculus_requestload(sd->status.account_id, sd->status.hom_id); @@ -748,10 +749,10 @@ int merc_resurrect_homunculus(struct map_session_data *sd, unsigned char per, sh hd = sd->hd; if (hd->homunculus.vaporize) - return 0; + return 0; // vaporized homunculi need to be 'called' if (!status_isdead(&hd->bl)) - return 0; + return 0; // already alive merc_hom_init_timers(hd); |