Skip to content

Commit

Permalink
Merge pull request #2302 from Wotuu/development
Browse files Browse the repository at this point in the history
Release v9.1.1
  • Loading branch information
Wotuu authored Mar 28, 2024
2 parents 30dce16 + 4c4201b commit 534e9c5
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 60 deletions.
1 change: 1 addition & 0 deletions app/Service/Spell/SpellService.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public function getCategoryNameFromRowClassName(string $rowClassName): ?string
{
// Try to match the category directly first
$categorySlug = Str::slug($rowClassName, '_');

if (!in_array($categorySlug, Spell::ALL_CATEGORIES)) {
// Try to find the associated class first, then use that class to identify the category
$characterClass = $this->getCharacterClassFromClassName($rowClassName);
Expand Down
2 changes: 2 additions & 0 deletions app/Service/View/ViewService.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ public function getGlobalViewVariables(bool $useCache = true): array

// Spells
$selectableSpellsByCategory = Spell::where('selectable', true)
->orderBy('category')
->orderBy('name')
->get()
->groupBy('category')
->mapWithKeys(static fn(Collection $spells, string $key) => [__($key) => $spells]);
Expand Down
Loading

0 comments on commit 534e9c5

Please sign in to comment.