diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/map/mob.c | 2 | ||||
-rw-r--r-- | src/map/skill.c | 8 | ||||
-rw-r--r-- | src/map/skill.h | 3 | ||||
-rw-r--r-- | src/map/unit.c | 2 |
4 files changed, 5 insertions, 10 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index fdf1911cb..e907fa862 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -1314,7 +1314,7 @@ static int mob_ai_sub_hard(struct block_list *bl,va_list ap) dy = 2*(-1+(i%3));
if (map_getcell(md->bl.m, tbl->x-dx, tbl->y-dy, CELL_CHKSTACK))
continue;
- if (unit_walktoxy(md, tbl->x-dx, tbl->y-dy, 0)) {
+ if (unit_walktoxy(&md->bl, tbl->x-dx, tbl->y-dy, 0)) {
unit_set_walkdelay(&md->bl, tick, 1000, 1);
break;
}
diff --git a/src/map/skill.c b/src/map/skill.c index 333db383c..8facca717 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -6793,12 +6793,8 @@ int skill_unit_onplace_timer(struct skill_unit *src,struct block_list *bl,unsign break;
}
- case UNT_ARROWSHOWER:
- skill_attack(BF_WEAPON,ss,&src->bl,bl,sg->skill_id,sg->skill_lv,tick,0);
- break;
-
- case UNT_MAGIC_SKILLS:
- skill_attack(BF_MAGIC,ss,&src->bl,bl,sg->skill_id,sg->skill_lv,tick,0);
+ case UNT_ATTACK_SKILLS:
+ skill_attack(skill_get_type(sg->skill_id),ss,&src->bl,bl,sg->skill_id,sg->skill_lv,tick,0);
break;
case UNT_FIREPILLAR_WAITING:
diff --git a/src/map/skill.h b/src/map/skill.h index 4fb2c9b40..4624e66b9 100644 --- a/src/map/skill.h +++ b/src/map/skill.h @@ -873,11 +873,10 @@ enum { UNT_FIREWALL,
UNT_WARP_WAITING,
UNT_WARP_ACTIVE,
- UNT_ARROWSHOWER = 0x82, //TODO: Get actual unit id.
UNT_SANCTUARY = 0x83,
UNT_MAGNUS,
UNT_PNEUMA,
- UNT_MAGIC_SKILLS,
+ UNT_ATTACK_SKILLS, //These show no effect on the client, therefore can be used for attack skills.
UNT_FIREPILLAR_WAITING,
UNT_FIREPILLAR_ACTIVE,
diff --git a/src/map/unit.c b/src/map/unit.c index a866cdf9e..c38e7fa6f 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -931,7 +931,7 @@ int unit_skilluse_pos2( struct block_list *src, int skill_x, int skill_y, int sk if (!status_check_skilluse(src, NULL, skill_num, 0))
return 0;
- if (map_getcell(src->m, skill_x, skill_y, CELL_CHKNOPASS))
+ if (map_getcell(src->m, skill_x, skill_y, CELL_CHKNOREACH))
{ //prevent casting ground targeted spells on non-walkable areas. [Skotlex]
if (sd) clif_skill_fail(sd,skill_num,0,0);
return 0;
|