Fixed twice assigned values (#2560)

* Resolves the skill timer getting assigned twice.
Thanks to @lunixoid!
This commit is contained in:
Roman Kalashnikov
2017-11-09 22:50:11 +03:00
committed by Aleos
parent 63daab5860
commit 1f7a314c78

View File

@@ -11128,7 +11128,6 @@ int skill_castend_id(int tid, unsigned int tick, int id, intptr_t data)
if( sd && ud->skilltimer != INVALID_TIMER && (pc_checkskill(sd,SA_FREECAST) > 0 || ud->skill_id == LG_EXEEDBREAK) )
{// restore original walk speed
ud->skilltimer = INVALID_TIMER;
status_calc_bl(&sd->bl, SCB_SPEED);
}
@@ -11409,7 +11408,6 @@ int skill_castend_pos(int tid, unsigned int tick, int id, intptr_t data)
if( sd && ud->skilltimer != INVALID_TIMER && ( pc_checkskill(sd,SA_FREECAST) > 0 || ud->skill_id == LG_EXEEDBREAK ) )
{// restore original walk speed
ud->skilltimer = INVALID_TIMER;
status_calc_bl(&sd->bl, SCB_SPEED);
}
ud->skilltimer = INVALID_TIMER;