PDA

View Full Version : Little Shield bug


Cyricx
03-03-2005, 08:38 PM
If you block with the shield and the damage dealt doesn't go over the shields, it GIVES health. :P

Easy to fix just wanted to make sure ya got it in :)

Was testing extremes on a shield when we hit this, without a shield the attacker did 16 points of damage, set the shield for 35 and started blocking with it. The next attack the person defending gained 19 health.

Revan
03-04-2005, 06:30 PM
Weird, I was under the impression that this bug was fixed before I assumed development of this hack.
Try adding this piece of code:
if ($damagedone < 0)
{
$damagedone = 0;
}

BEFORE
$newhp = $opponent['hp'] - $damagedone;in battleupdate.php