1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-29 00:41:38 +02:00

Fixed #993, tent code cleanups.

This commit is contained in:
Michał W. Urbańczyk
2012-06-10 13:07:08 +00:00
parent d0816a7924
commit 84630a0984
2 changed files with 19 additions and 31 deletions

View File

@ -3171,8 +3171,8 @@ bool CStack::isValidTarget(bool allowDead/* = false*/) const /*alive non-turret
bool CStack::canBeHealed() const
{
return firstHPleft != MaxHealth()
&& alive()
return firstHPleft < MaxHealth()
&& isValidTarget()
&& !hasBonusOfType(Bonus::SIEGE_WEAPON);
}