diff options
author | skyleo <skyleo@skyleo.de> | 2019-10-10 00:11:28 +0200 |
---|---|---|
committer | skyleo <skyleo@skyleo.de> | 2019-10-10 03:33:34 +0200 |
commit | ef4128360d2c5c5798e4ece52fbf3d0f290d07bd (patch) | |
tree | 8a7956ea035d2995c8108d9384595e66986338b3 /src/map | |
parent | d026e28fd78f60dfa21da381f17f2a8cc9ae3d11 (diff) | |
download | hercules-ef4128360d2c5c5798e4ece52fbf3d0f290d07bd.tar.gz hercules-ef4128360d2c5c5798e4ece52fbf3d0f290d07bd.tar.bz2 hercules-ef4128360d2c5c5798e4ece52fbf3d0f290d07bd.tar.xz hercules-ef4128360d2c5c5798e4ece52fbf3d0f290d07bd.zip |
Fix Homunculus skill requirements being put on owner as well
This fixes not being able to use Homunculus skills when having
90% overweight.
This also fixes not being able to use Homunculus skills when the owner has
low HP or SP, even though the Homunculus has enough HP or SP to use the
skill.
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/unit.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 45cb7dffd..9cbef3091 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -1410,13 +1410,6 @@ static int unit_skilluse_id2(struct block_list *src, int target_id, uint16 skill } } - if (src->type == BL_HOM) { - // In case of homunuculus, set the sd to the homunculus' master, as needed below - struct block_list *master = battle->get_master(src); - if (master) - sd = map->id2sd(master->id); - } - if (sd) { /* temporarily disabled, awaiting for kenpachi to detail this so we can make it work properly */ #if 0 |