Support for adding and replacing attacks.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
@@ -22,7 +22,7 @@ CreateCreature CreateCreature::WithGender(Library::Gender gender) {
|
||||
}
|
||||
|
||||
CreateCreature CreateCreature::WithAttack(const ArbUt::StringView& attackName, AttackLearnMethod learnMethod) {
|
||||
if (_attacks.Count() >= _library->GetSettings()->GetMaximalMoves()) {
|
||||
if (_attacks.Count() >= _library->GetSettings()->GetMaximalAttacks()) {
|
||||
THROW_CREATURE("You have already set the maximum amount of allowed moves.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user