diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-12 22:48:56 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-12 22:48:56 +0000 |
commit | 96dd8cdf7ac9778cbb84b7c67f65296b8f723eb5 (patch) | |
tree | 7a4d8210878c359c60f51c4882253c5565f1cff9 /src/map/atcommand.c | |
parent | 2b9e300e11b6b36fbbf3626b205b89e84ec4b3ee (diff) | |
download | hercules-96dd8cdf7ac9778cbb84b7c67f65296b8f723eb5.tar.gz hercules-96dd8cdf7ac9778cbb84b7c67f65296b8f723eb5.tar.bz2 hercules-96dd8cdf7ac9778cbb84b7c67f65296b8f723eb5.tar.xz hercules-96dd8cdf7ac9778cbb84b7c67f65296b8f723eb5.zip |
- 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
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 6 |
1 files changed, 2 insertions, 4 deletions
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); |