Check if target of attack is a valid target for that attack.
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
2021-05-24 10:57:17 +02:00
parent 69dab061da
commit 8241a2d7b1
3 changed files with 66 additions and 1 deletions

View File

@@ -12,6 +12,9 @@ namespace CreatureLib::Battling {
public:
static TargetList ResolveTargets(const CreatureIndex& index, CreatureLib::Library::AttackTarget target,
const ArbUt::BorrowedPtr<Battle>& battle);
static bool IsValidTarget(const CreatureIndex& index, CreatureLib::Library::AttackTarget target,
const ArbUt::BorrowedPtr<Creature>& user);
};
}