Don't count deleted players (patched from develop)

This commit is contained in:
slawkens
2022-05-31 11:54:56 +02:00
parent 084256ce01
commit e2575c3612
3 changed files with 13 additions and 4 deletions

View File

@@ -138,7 +138,7 @@ class CreateCharacter
if(empty($errors))
{
$number_of_players_on_account = $account->getPlayersList()->count();
$number_of_players_on_account = $account->getPlayersList(false)->count();
if($number_of_players_on_account >= config('characters_per_account'))
$errors[] = 'You have too many characters on your account <b>('.$number_of_players_on_account.'/'.config('characters_per_account').')</b>!';
}