summaryrefslogtreecommitdiff
path: root/src/map/pc.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2020-06-28 02:04:04 +0200
committerGitHub <noreply@github.com>2020-06-28 02:04:04 +0200
commit74e33aee9e47d0d74bf3ff58b55a823729c529ad (patch)
tree48d68c2a3c59c9260f7d39089ffd7c1ae8508e69 /src/map/pc.h
parent44db4ecf056d23a114c033eecd7f907a92217a77 (diff)
parent604962fd2a7e69c812708d0cb9cfe4130e595ea2 (diff)
downloadhercules-74e33aee9e47d0d74bf3ff58b55a823729c529ad.tar.gz
hercules-74e33aee9e47d0d74bf3ff58b55a823729c529ad.tar.bz2
hercules-74e33aee9e47d0d74bf3ff58b55a823729c529ad.tar.xz
hercules-74e33aee9e47d0d74bf3ff58b55a823729c529ad.zip
Merge pull request #2781 from Kenpachi2k13/pet_features
Add some pet features and minor pet code clean up
Diffstat (limited to 'src/map/pc.h')
-rw-r--r--src/map/pc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/pc.h b/src/map/pc.h
index 848a9db10..6b83a7b91 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -727,6 +727,9 @@ END_ZEROED_BLOCK;
/// Rune Knight Dragon
#define pc_isridingdragon(sd) ( (sd)->sc.option&OPTION_DRAGON )
+// Check if character has a pet.
+#define pc_has_pet(sd) ( (sd)->status.pet_id != 0 && (sd)->pd != NULL && (sd)->pd->pet.intimate > PET_INTIMACY_NONE )
+
#define pc_stop_walking(sd, type) (unit->stop_walking(&(sd)->bl, (type)))
#define pc_stop_attack(sd) (unit->stop_attack(&(sd)->bl))