Several fixes and improvements.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-12-28 15:11:06 +01:00
parent bbb2691b91
commit 31008c0107
7 changed files with 70 additions and 20 deletions

View File

@@ -11,7 +11,7 @@ namespace PkmnLib::Battling {
PokemonParty(std::initializer_list<CreatureLib::Battling::Creature*> party)
: CreatureLib::Battling::CreatureParty(party) {}
ArbUt::BorrowedPtr<Pokemon> GetAtIndex(int index) const {
ArbUt::OptionalBorrowedPtr<Pokemon> GetAtIndex(int index) const {
return CreatureLib::Battling::CreatureParty::GetAtIndex(index).As<Pokemon>();
}
};