changed is not alive to is dead

This commit is contained in:
2021-11-09 19:28:23 +01:00
parent 9a256a4c66
commit 99c3488262

View File

@@ -7,7 +7,7 @@ namespace td {
namespace game {
bool Tower::isMobInRange(MobPtr mob) {
if (!mob->isAlive())
if (mob->isDead())
return false;
return (m_X - mob->getX()) * (m_X - mob->getX()) + (m_Y - mob->getY()) * (m_Y - mob->getY()) < (getStats()->getRange() * getStats()->getRange());
}