feat: add archer tower aoe

This commit is contained in:
2021-11-30 18:01:48 +01:00
parent 6a51638b7e
commit 1843fc6f4d
3 changed files with 45 additions and 8 deletions

View File

@@ -213,11 +213,11 @@ void ArcherTower::tick(std::uint64_t delta, World* world) {
std::uint8_t arrows = explosiveArrows ? 2 : getLevel().getLevel();
for (MobPtr mob : world->getMobList()) {
if (isMobInRange(mob)) {
world->OnArrowShot(mob, this);
world->OnArcherTowerShot(mob, this);
m_Timer.applyCooldown();
arrowsShot++;
if (arrowsShot >= arrows)
break;
m_Timer.applyCooldown();
}
}
}