diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-03-11 23:02:24 +0100 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-03-14 22:35:09 +0100 |
commit | 49d0ce1c60455e4971c7bf9c80f4b92ce49f377f (patch) | |
tree | 030b63bc9c675935aff274b71a6289b0dce0d2c8 /src/map/unit.c | |
parent | 492c7bc03c5a40957677f2d98c7d61961dfa6113 (diff) | |
download | hercules-49d0ce1c60455e4971c7bf9c80f4b92ce49f377f.tar.gz hercules-49d0ce1c60455e4971c7bf9c80f4b92ce49f377f.tar.bz2 hercules-49d0ce1c60455e4971c7bf9c80f4b92ce49f377f.tar.xz hercules-49d0ce1c60455e4971c7bf9c80f4b92ce49f377f.zip |
Remove skill_is_item_skill() function and use map_session_data->autocast.type instead
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index c1da2c72b..ab6f345ed 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -1707,7 +1707,7 @@ static int unit_skilluse_id2(struct block_list *src, int target_id, uint16 skill if (!ud->state.running) //need TK_RUN or WUGDASH handler to be done before that, see bugreport:6026 unit->stop_walking(src, STOPWALKING_FLAG_FIXPOS);// even though this is not how official works but this will do the trick. bugreport:6829 - if (sd != NULL && sd->state.itemskill_no_casttime == 1 && skill->is_item_skill(sd, skill_id, skill_lv)) + if (sd != NULL && sd->state.itemskill_no_casttime == 1 && sd->autocast.type == AUTOCAST_ITEM) casttime = 0; // in official this is triggered even if no cast time. @@ -1915,7 +1915,7 @@ static int unit_skilluse_pos2(struct block_list *src, short skill_x, short skill unit->stop_walking(src, STOPWALKING_FLAG_FIXPOS); - if (sd != NULL && sd->state.itemskill_no_casttime == 1 && skill->is_item_skill(sd, skill_id, skill_lv)) + if (sd != NULL && sd->state.itemskill_no_casttime == 1 && sd->autocast.type == AUTOCAST_ITEM) casttime = 0; // in official this is triggered even if no cast time. |