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:
@@ -50,8 +50,8 @@ void TurnHandler::ExecuteChoice(const ArbUt::BorrowedPtr<BaseTurnChoice>& choice
|
||||
if (battle->HasEnded()) {
|
||||
return;
|
||||
}
|
||||
// If the user is fainted, we don't want to execute its choice.
|
||||
if (user->IsFainted()) {
|
||||
// If the user is not usable, we don't want to execute its choice.
|
||||
if (!user->IsUsable()) {
|
||||
return;
|
||||
}
|
||||
// If the user is not in the field, we don't want to execute its choice.
|
||||
|
||||
Reference in New Issue
Block a user