diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-04-21 06:33:17 +0200 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-05-10 21:30:29 +0200 |
commit | 94e9efa489b74ebed374dc7346a6605e43dedd85 (patch) | |
tree | 45da30097af91d6ab2aed1974410e640c74234af /src/map/status.c | |
parent | f52be55dc66ff5adcf6e00f55abc5d91bd89e798 (diff) | |
download | hercules-94e9efa489b74ebed374dc7346a6605e43dedd85.tar.gz hercules-94e9efa489b74ebed374dc7346a6605e43dedd85.tar.bz2 hercules-94e9efa489b74ebed374dc7346a6605e43dedd85.tar.xz hercules-94e9efa489b74ebed374dc7346a6605e43dedd85.zip |
Use auto_cast_current instead of autocast
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/status.c b/src/map/status.c index dc49f7e4e..f7feda7d8 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -1596,7 +1596,7 @@ static int status_check_skilluse(struct block_list *src, struct block_list *targ } if( skill_id ) { - if (src != NULL && (sd == NULL || sd->autocast.type != AUTOCAST_ITEM)) { + if (src != NULL && (sd == NULL || sd->auto_cast_current.type != AUTOCAST_ITEM)) { // Items that cast skills using 'itemskill' will not be handled by map_zone_db. int i; @@ -1640,7 +1640,7 @@ static int status_check_skilluse(struct block_list *src, struct block_list *targ if (src != NULL && map->getcell(src->m, src, src->x, src->y, CELL_CHKLANDPROTECTOR) && !(st->mode&MD_BOSS) - && (src->type != BL_PC || sd->autocast.type != AUTOCAST_ITEM)) + && (src->type != BL_PC || sd->auto_cast_current.type != AUTOCAST_ITEM)) return 0; break; default: @@ -1719,7 +1719,7 @@ static int status_check_skilluse(struct block_list *src, struct block_list *targ return 0; //Can't amp out of Wand of Hermode :/ [Skotlex] } - if (skill_id != 0 /* Do not block item-casted skills.*/ && (src->type != BL_PC || sd->autocast.type != AUTOCAST_ITEM)) { + if (skill_id != 0 /* Do not block item-casted skills.*/ && (src->type != BL_PC || sd->auto_cast_current.type != AUTOCAST_ITEM)) { //Skills blocked through status changes... if (!flag && ( //Blocked only from using the skill (stuff like autospell may still go through sc->data[SC_SILENCE] || |