Fix: do not count deleted characters

On create new character page
This commit is contained in:
slawkens
2021-01-20 19:46:07 +01:00
parent a271edec47
commit 855e9aa3b9
3 changed files with 12 additions and 3 deletions

View File

@@ -103,7 +103,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>!';
}