Skip to content

Commit

Permalink
Added a map cell check for Shadow Leap (fixes #1291)
Browse files Browse the repository at this point in the history
* Resolves players being able to enter non-walkable parts of maps.
Thanks to @Tokeiburu!
  • Loading branch information
aleos89 committed May 21, 2016
1 parent 19f2bc5 commit 4f34689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/skill.c
Expand Up @@ -11712,7 +11712,7 @@ int skill_castend_pos2(struct block_list* src, int x, int y, uint16 skill_id, ui
}
break;
case NJ_SHADOWJUMP:
if( skill_check_unit_movepos(3, src, x, y, 1, 0) ) //You don't move on GVG grounds.
if( map_getcell(src->m,x,y,CELL_CHKREACH) && skill_check_unit_movepos(3, src, x, y, 1, 0) ) //You don't move on GVG grounds.
clif_blown(src);
status_change_end(src, SC_HIDING, INVALID_TIMER);
break;
Expand Down

0 comments on commit 4f34689

Please sign in to comment.