battles/magic/cure_d.php
2018-01-28 18:40:49 +02:00

13 lines
540 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?
if(!isset($_SESSION['uid'])) { header('Location: ../index.php'); die(); }
if($user['battle'] > 0) {
echo "<font color=red><b>Не в бою ...</b></font>";
} elseif($user['hp'] == $user['maxhp']) {
echo "<font color=red><b>Ваше здоровье и так полное ...</b></font>";
} else {
$user['hp'] = $user['maxhp'];
mysql_query('UPDATE `users` SET `hp` = "'.$user['hp'].'" WHERE `id` = "'.$user['id'].'" LIMIT 1');
echo "<font color=red><b>Вы скушали Бутербродик ...</b></font>";
$bet = 1;
}