From 96dd8cdf7ac9778cbb84b7c67f65296b8f723eb5 Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 12 Oct 2007 22:48:56 +0000 Subject: - cleaned up homshuffle and fixed a possible crash in it. - Updated the skill_delayfix function to behave as recently discovered by Tharis: Skills with no delay set will use amotion ONLY if the skill was instant-casted. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11433 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/map/atcommand.c') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 1d05e915f..b584c6218 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -8465,7 +8465,6 @@ int atcommand_homstats(const int fd, struct map_session_data* sd, const char* co int atcommand_homshuffle(const int fd, struct map_session_data* sd, const char* command, const char* message) { - struct homun_data *hd; TBL_PC* tsd = sd; nullpo_retr(-1, sd); @@ -8488,11 +8487,10 @@ int atcommand_homshuffle(const int fd, struct map_session_data* sd, const char* } } - hd = tsd->hd; - - if(!merc_hom_shuffle(hd)) + if(!merc_hom_shuffle(tsd->hd)) return -1; + clif_displaymessage(sd->fd, "[Homunculus Stats Altered]"); //Print out the new stats //This will send the commands to the invoker since they all use this fd regardless of sd value. atcommand_homstats(fd, tsd, command, message); -- cgit v1.2.3-60-g2f50