Skip to content

Commit

Permalink
fix: "Crazy King" support (#1391)
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches authored Jul 17, 2024
1 parent a75b244 commit 6173c76
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/Support/Gametype/GametypeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ public static function findBaseGametype(string $name): BaseGametype
}
}

// Special check for KOTH / King of the Hill
if (Str::contains($name, 'king of the hill', true)) {
$kingOfTheHillModes = [
'Crazy King',
'King of the Hill',
];

if (Str::contains($name, $kingOfTheHillModes, true)) {
return BaseGametype::KOTH();
}

Expand Down

0 comments on commit 6173c76

Please sign in to comment.