[Game] Implement action to automatically take damage from creatures (#6869)

* [Game] Implement action to automatically take damage from creatures

* cleanup
This commit is contained in:
RickyRister 2026-05-13 15:03:41 -07:00 committed by GitHub
parent 67f6ab66f0
commit 762e742be0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 58 additions and 0 deletions

View file

@ -343,6 +343,16 @@ void Player::incrementAllCardCounters()
}
}
AbstractCounter *Player::getLifeCounter() const
{
for (auto counter : counters.values()) {
if (counter->getName() == "life") {
return counter;
}
}
return nullptr;
}
ArrowItem *Player::addArrow(const ServerInfo_Arrow &arrow)
{
const QMap<int, Player *> &playerList = game->getPlayerManager()->getPlayers();