Scorp, нет,ты где-то видишь проверку на уровень? он будет вышибать без потери урона.
Пробуй вот так,
Code
new idUser = read_data(1)
if(p_data[idUser][P_LEVEL]==MAX_LEVELS)
{
// Damage should be decreased by 2/3 on each jump
parm[1] = floatround(float(parm[2])*1);
// Decrease line width as well
parm[2] = floatround(float(parm[2])*1);
// Display the actual lightning
OR_ULT_ChainEffect( iCaster, iClosestTarget, parm[2], parm[1], iBodyPart );
// Lets call this again on our next target!
parm[0] = iClosestTarget;
set_task( 0.2, "_OR_ULT_ChainLightning", TASK_LIGHTNINGNEXT + iCaster, parm, 5 );
}
else
{
parm[1] = floatround(float(parm[2])*2/3);
// Decrease line width as well
parm[2] = floatround(float(parm[2])*2/3);
// Display the actual lightning
OR_ULT_ChainEffect( iCaster, iClosestTarget, parm[2], parm[1], iBodyPart );
// Lets call this again on our next target!
parm[0] = iClosestTarget;
set_task( 0.2, "_OR_ULT_ChainLightning", TASK_LIGHTNINGNEXT + iCaster, parm, 5 );
}