Crown The Empire
New member
- Messages
- 14
- Points
- 0
A skill "Armadilha" não está funcionando corretamente!
Acontece o seguinte:
O jogador passa por cima tira a maioria das armadilhas e trava só depois em uma célula que sequer tem armadilha.
Acontece o seguinte:
O jogador passa por cima tira a maioria das armadilhas e trava só depois em uma célula que sequer tem armadilha.
Code:
case UNT_ANKLESNARE:case UNT_MANHOLE:if( sg->val2 == 0 && tsc && (sg->unit_id == UNT_ANKLESNARE || bl->id != sg->src_id) ) {int sec = skill->get_time2(sg->skill_id,sg->skill_lv);if( status_change_start(bl,type,10000,sg->skill_lv,sg->group_id,0,0,sec, 8) ) {const struct TimerData* td = tsc->data[type]?iTimer->get_timer(tsc->data[type]->timer):NULL;if( td )sec = DIFF_TICK(td->tick, tick);if( sg->unit_id == UNT_MANHOLE || battle_config.skill_trap_type || !map_flag_gvg(src->bl.m) ) {unit_movepos(bl, src->bl.x, src->bl.y, 0, 0);clif->fixpos(bl);}sg->val2 = bl->id;} elsesec = 3000; //Couldn't trap it?if( sg->unit_id == UNT_ANKLESNARE ) {clif->skillunit_update(&src->bl);/*** If you're snared from a trap that was invisible this makes the trap be* visible again -- being you stepped on it (w/o this the trap remains invisible and you go "WTF WHY I CANT MOVE")* bugreport:3961**/clif->changetraplook(&src->bl, UNT_ANKLESNARE);}sg->limit = DIFF_TICK(tick,sg->tick)+sec;sg->interval = -1;src->range = 0;}break;