Нет, ну там и правда проще расписать получается,
[man]
if($steps['attacker_attack_step'][$i] == 1) { //Правый Джеб
if($steps['defenser_defense_step'][$i] == 2 or $steps['defenser_defense_step'][$i] == 5 or $steps['defenser_defense_step'][$i] == 7 or $steps['defenser_defense_step'][$i] == 9)
$damage = 0;
else
$damage = floor(($players['attack']['str']*10+90)/(100/$energy));
}
else if($steps['attacker_attack_step'][$i] == 2) { //Левый Джеб
if($steps['defenser_defense_step'][$i] == 1 or $steps['defenser_defense_step'][$i] == 5 or $steps['defenser_defense_step'][$i] == 8 or $steps['defenser_defense_step'][$i] == 9)
$damage = 0;
else
$damage = floor(($players['attack']['str']*10+90)/(100/$energy));
}[/man]
Спустя 47 сек.
if($steps['attacker_attack_step'][$i] == 1) { //Правый Джеб
if($steps['defenser_defense_step'][$i] == 2 or $steps['defenser_defense_step'][$i] == 5 or $steps['defenser_defense_step'][$i] == 7 or $steps['defenser_defense_step'][$i] == 9)
$damage = 0;
else
$damage = floor(($players['attack']['str']*10+90)/(100/$energy));
}
else if($steps['attacker_attack_step'][$i] == 2) { //Левый Джеб
if($steps['defenser_defense_step'][$i] == 1 or $steps['defenser_defense_step'][$i] == 5 or $steps['defenser_defense_step'][$i] == 8 or $steps['defenser_defense_step'][$i] == 9)
$damage = 0;
else
$damage = floor(($players['attack']['str']*10+90)/(100/$energy));
}