diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-02-09 11:27:27 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-02-09 11:27:27 +0000 |
commit | b8526ec6c37e9796c7f829a3c072b71bd21af756 (patch) | |
tree | 1301c39e936f5529842a3bdc9e895e43a9fbee93 /src/map/script.c | |
parent | c4f7126a6d75662c62242ec23ce76292c3f35470 (diff) | |
download | hercules-b8526ec6c37e9796c7f829a3c072b71bd21af756.tar.gz hercules-b8526ec6c37e9796c7f829a3c072b71bd21af756.tar.bz2 hercules-b8526ec6c37e9796c7f829a3c072b71bd21af756.tar.xz hercules-b8526ec6c37e9796c7f829a3c072b71bd21af756.zip |
* Fixed script command 'bpet' (Pet Incubator) displaying an empty egg list when attempting to hatch a pet while already having one out (bugreport:3313).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14702 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c index dd19e79e2..df862dcc0 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -9124,6 +9124,11 @@ BUILDIN_FUNC(birthpet) if( sd == NULL ) return 0; + if( sd->status.pet_id ) + {// do not send egg list, when you already have a pet + return 0; + } + clif_sendegg(sd); return 0; } |