diff options
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/skill.c | 2 | ||||
-rw-r--r-- | src/map/unit.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index fbc5c6a64..25deef213 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -1587,6 +1587,8 @@ int skill_blown( struct block_list *src, struct block_list *target,int count) break;
case BL_MOB:
md=(struct mob_data *)target;
+ if (md->class_ == MOBID_EMPERIUM)
+ return 0;
break;
case BL_PET:
pd=(struct pet_data *)target;
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;
|