diff options
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index bed5a93d2..52f5d3fb1 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -790,6 +790,7 @@ int unit_skilluse_id2(struct block_list *src, int target_id, int skill_num, int case HAMI_CASTLE: target = battle_get_master(src); if (!target) return 0; + target_id = target->id; } if(!target && (target=map_id2bl(target_id)) == NULL ) |