if (@$break_loop) { break; } } } //hit points>0 } //end foreach opponent } // $character->update_stamina(); if ($character->stamina_points < 0.25 * $character->stamina_points) { $refsidebar = true; } // DRINK POTIONS if ($comb_act == 'drink_potion') { $_SESSION['heal_points'] = $character->drink_potion2($invid); $_SESSION['no_heal'] = 0; $refsidebar = true; // still in combat? if ($_SESSION['endcombat'] == false) { // "yes" means you drink and OPP attacks jsChangeLocation("combat.php?comb_act=npc_attack&healed"); } else { // "no" means you drink, no OPP attack jsChangeLocation("combat.php?healed"); } } if (@$refsidebar) { refsidebar(); } }