summaryrefslogtreecommitdiff
path: root/src/map/script.c
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/script.c
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/script.c')
-rw-r--r--src/map/script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 4c196418b..a8fee9076 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -20518,6 +20518,8 @@ static BUILDIN(setunitdata)
break;
case UDT_LEVEL:
pd->pet.level = (short)val;
+ if (pd->msd != NULL)
+ clif->send_petstatus(pd->msd); // Send pet data.
break;
case UDT_HP:
status->set_hp(bl, (unsigned int)val, STATUS_HEAL_DEFAULT);
@@ -20629,7 +20631,6 @@ static BUILDIN(setunitdata)
break;
case UDT_INTIMACY:
pet->set_intimate(pd, val);
- clif->send_petdata(pd->msd, pd, 1, pd->pet.intimate);
break;
case UDT_HUNGER:
pet->set_hunger(pd, val);
@@ -20640,7 +20641,6 @@ static BUILDIN(setunitdata)
return false;
}
- clif->send_petstatus(pd->msd); // Send pet data.
break;
}
case BL_MER: {