Add new Creature::IsUsable function, which replaces IsFainted functionality in several places.
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:
@@ -10,7 +10,7 @@ bool BattleSide::AllPossibleSlotsFilled() const {
|
||||
try {
|
||||
for (size_t i = 0; i < _creatures.Count(); i++) {
|
||||
auto c = _creatures[i];
|
||||
if (!c.HasValue() || c.GetValue()->IsFainted()) {
|
||||
if (!c.HasValue() || !c.GetValue()->IsUsable()) {
|
||||
if (_battle->CanSlotBeFilled(_index, i)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user