summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-27 12:45:12 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-27 12:45:12 +0000
commit4c0b6e20600032b95b6ff4b0add236f44daabb3c (patch)
treef72f7cd308b68f43c0e116e1fc155af481ed8a24 /src/map/skill.c
parent842984c9a12ca4d641314d3f1f5651c3a77d3f61 (diff)
downloadhercules-4c0b6e20600032b95b6ff4b0add236f44daabb3c.tar.gz
hercules-4c0b6e20600032b95b6ff4b0add236f44daabb3c.tar.bz2
hercules-4c0b6e20600032b95b6ff4b0add236f44daabb3c.tar.xz
hercules-4c0b6e20600032b95b6ff4b0add236f44daabb3c.zip
Removed 'petid', a command from r284 to look up pet ids by name.
Cleaned up some pet-related code. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11586 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index d9518d9bf..98db18af9 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -3772,12 +3772,9 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
case SA_TAMINGMONSTER:
clif_skill_nodamage(src,bl,skillid,skilllv,1);
if (sd && dstmd) {
- for (i = 0; i < MAX_PET_DB; i++) {
- if (dstmd->class_ == pet_db[i].class_) {
- pet_catch_process1 (sd, dstmd->class_);
- break;
- }
- }
+ ARR_FIND( 0, MAX_PET_DB, i, dstmd->class_ == pet_db[i].class_ );
+ if( i < MAX_PET_DB )
+ pet_catch_process1(sd, dstmd->class_);
}
break;