Good morning, can someone help me block the use of the skill BODYRELOCATION when in trap? I tried to make some settings in the functions below but I did not succeed.
skill.c
case MO_BODYRELOCATION:
if (unit->movepos(src, x, y, 1, 1)) {
#if PACKETVER >= 20111005
clif->snap(src, src->x, src->y);
#else
clif->skill_poseffect(src,skill_id,skill_lv,src->x,src->y,tick);
#endif
if (sd)
skill->blockpc_start (sd, MO_EXTREMITYFIST, 1000);
}
break;
case UNT_SPIDERWEB:
if( sc && sc->data[SC_SPIDERWEB] && sc->data[SC_SPIDERWEB]->val1 > 0 ) {
// If you are fiberlocked and can't move, it will only increase your fireweakness level. [Inkfish]
sc->data[SC_SPIDERWEB]->val2++;
break;
} else if (sc && battle->check_target(&src->bl,bl,sg->target_flag) > 0) {
int sec = skill->get_time2(sg->skill_id,sg->skill_lv);
if( status->change_start(ss, bl,type,10000,sg->skill_lv,1,sg->group_id,0,sec,SCFLAG_FIXEDRATE) ) {
const struct TimerData* td = sce?timer->get(sce->timer):NULL;
if( td )
sec = DIFF_TICK32(td->tick, tick);
map->moveblock(bl, src->bl.x, src->bl.y, tick);
clif->fixpos(bl);
sg->val2 = bl->id;
} else {
sec = 3000; //Couldn't trap it?
}
sg->limit = DIFF_TICK32(tick,sg->tick)+sec;
}
break;
Good morning, can someone help me block the use of the skill BODYRELOCATION when in trap? I tried to make some settings in the functions below but I did not succeed.
skill.c
Thank you in advance ! +1
Please, help me ! :unsure:
Share this post
Link to post
Share on other sites