Skip to content

Commit

Permalink
Implemented SU_LOPE Skill.
Browse files Browse the repository at this point in the history
Skill Cannot be Used on GvG/Battlegrounds.
Cast time of Emergency Call doubles.
Moves to Another Position by performing High Jump:
Lv 1: Move 6 cells
Lv 2: Move 10 cells
Lv 3: Move 14 cells
  • Loading branch information
dastgirp authored and hemagx committed Oct 22, 2016
1 parent 72cd237 commit af8ecd8
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
2 changes: 2 additions & 0 deletions db/pre-re/map_zone_db.conf
Expand Up @@ -159,6 +159,7 @@ zones: (
BS_GREED: "PLAYER"
SC_FATALMENACE: "PLAYER"
SC_DIMENSIONDOOR: "PLAYER"
SU_LOPE: "PLAYER"
}

disabled_items: {
Expand Down Expand Up @@ -225,6 +226,7 @@ zones: (
CASH_ASSUMPTIO: "PLAYER"
SC_FATALMENACE: "PLAYER"
SC_DIMENSIONDOOR: "PLAYER"
SU_LOPE: "PLAYER"
}
disabled_items: {
Assumptio_5_Scroll: true
Expand Down
2 changes: 2 additions & 0 deletions db/re/map_zone_db.conf
Expand Up @@ -193,6 +193,7 @@ zones: (
BS_GREED: "PLAYER"
SC_FATALMENACE: "PLAYER"
SC_DIMENSIONDOOR: "PLAYER"
SU_LOPE: "PLAYER"
}

disabled_items: {
Expand Down Expand Up @@ -292,6 +293,7 @@ zones: (
CASH_ASSUMPTIO: "PLAYER"
SC_FATALMENACE: "PLAYER"
SC_DIMENSIONDOOR: "PLAYER"
SU_LOPE: "PLAYER"
}
disabled_items: {
Assumptio_5_Scroll: true
Expand Down
13 changes: 13 additions & 0 deletions src/map/skill.c
Expand Up @@ -10686,6 +10686,19 @@ int skill_castend_pos2(struct block_list* src, int x, int y, uint16 skill_id, ui
}
status_change_end(src, SC_HIDING, INVALID_TIMER);
break;
case SU_LOPE:
{
if (map->list[src->m].flag.noteleport && !(map->list[src->m].flag.battleground || map_flag_gvg2(src->m))) {
x = src->x;
y = src->y;
}
clif->skill_nodamage(src, src, SU_LOPE, skill_lv, 1);
if(!map->count_oncell(src->m, x, y, BL_PC | BL_NPC | BL_MOB, 0) && map->getcell(src->m, src, x, y, CELL_CHKREACH)) {
clif->slide(src, x, y);
unit->movepos(src, x, y, 1, 0);
}
}
break;
case AM_SPHEREMINE:
case AM_CANNIBALIZE:
{
Expand Down
2 changes: 1 addition & 1 deletion src/map/unit.c
Expand Up @@ -1544,7 +1544,7 @@ int unit_skilluse_id2(struct block_list *src, int target_id, uint16 skill_id, ui
}
break;
case GD_EMERGENCYCALL: //Emergency Call double cast when the user has learned Leap [Daegaladh]
if( sd && pc->checkskill(sd,TK_HIGHJUMP) )
if (sd && (pc->checkskill(sd,TK_HIGHJUMP) || pc->checkskill(sd,SU_LOPE) >= 3))
casttime *= 2;
break;
case RA_WUGDASH:
Expand Down

0 comments on commit af8ecd8

Please sign in to comment.