diff options
author | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-30 13:11:13 +0000 |
---|---|---|
committer | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-30 13:11:13 +0000 |
commit | db0f3228b73597f9c1d6f2cd661a09621d9b48c3 (patch) | |
tree | 4c88d114dd27e1958b311542c16581d2c041a368 /src | |
parent | bdc6551ea5f86f85c5edeb1b6ae388b1b01a3427 (diff) | |
download | hercules-db0f3228b73597f9c1d6f2cd661a09621d9b48c3.tar.gz hercules-db0f3228b73597f9c1d6f2cd661a09621d9b48c3.tar.bz2 hercules-db0f3228b73597f9c1d6f2cd661a09621d9b48c3.tar.xz hercules-db0f3228b73597f9c1d6f2cd661a09621d9b48c3.zip |
* [Fixed]
- Pets attacking even master is dead
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6841 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/pc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 1d5cd2d28..a0d8fe17e 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -4445,6 +4445,10 @@ int pc_dead(struct map_session_data *sd,struct block_list *src) if(sd->pet.intimate < 0)
sd->pet.intimate = 0;
clif_send_petdata(sd,1,sd->pet.intimate);
+ if(sd->pd->target_id){ // Unlock all targets...
+ unit_unattackable(&sd->pd->bl);
+ sd->pd->target_id = 0;
+ }
}
// Leave duel if you die [LuzZza]
|