|
Try only assinging the hitpoints to the session if it's not assigned.
if (!isset($_SESSION['playerHp'])) $_SESSION['playerHp'] = 100;
if (!isset($_SESSION['dragonHp'])) $_SESSION['dragonHp'] = 100;
__________________
<mgraphic /> - I don't have a solution but I admire the problem.
|