diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-28 20:26:50 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-28 20:26:50 +0000 |
commit | 2a97fa2a68d6b57c0674681452d41c0691c7763b (patch) | |
tree | 7fada300b3a74d1ed33514338f6967e5351fabeb /src/map/unit.c | |
parent | 2b4787d78f47142d979cb568e179387fb4befc7b (diff) | |
download | hercules-2a97fa2a68d6b57c0674681452d41c0691c7763b.tar.gz hercules-2a97fa2a68d6b57c0674681452d41c0691c7763b.tar.bz2 hercules-2a97fa2a68d6b57c0674681452d41c0691c7763b.tar.xz hercules-2a97fa2a68d6b57c0674681452d41c0691c7763b.zip |
- Fixed Wedding support skills healing yourself instead of partner.
- Added a check to prevent knocking back the Emperium at all costs.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5792 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 605a8bc24..d40ba59da 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -696,7 +696,6 @@ int unit_skilluse_id2(struct block_list *src, int target_id, int skill_num, int if (sc && sc->data[SC_BLADESTOP].timer != -1){
if ((target=(struct block_list *)sc->data[SC_BLADESTOP].val4) == NULL)
return 0;
- target_id = target->id;
}
break;
case TK_JUMPKICK:
@@ -710,13 +709,14 @@ int unit_skilluse_id2(struct block_list *src, int target_id, int skill_num, int if (!sd->status.partner_id)
return 0;
target = (struct block_list*)map_charid2sd(sd->status.partner_id);
- if (!target)
- {
+ if (!target) {
clif_skill_fail(sd,skill_num,0,0);
return 0;
}
break;
}
+ if (target)
+ target_id = target->id;
}
if(!target && (target=map_id2bl(target_id)) == NULL )
return 0;
|