Skip to content

Commit

Permalink
fix(characters): update character image handling for multiple subtypes (
Browse files Browse the repository at this point in the history
  • Loading branch information
SpeedyD authored Aug 31, 2024
1 parent 0385914 commit 6ad7c4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Services/CharacterManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1932,9 +1932,9 @@ private function handleCharacter($data, $isMyo = false) {
private function handleCharacterImage($data, $character, $isMyo = false) {
try {
if ($isMyo) {
$data['species_id'] = (isset($data['species_id']) && $data['species_id']) ? $data['species_id'] : null;
$data['subtype_id'] = isset($data['subtype_id']) && $data['subtype_id'] ? $data['subtype_id'] : null;
$data['rarity_id'] = (isset($data['rarity_id']) && $data['rarity_id']) ? $data['rarity_id'] : null;
$data['species_id'] = isset($data['species_id']) && $data['species_id'] ? $data['species_id'] : null;
$data['subtype_ids'] = isset($data['subtype_ids']) && $data['subtype_ids'] ? $data['subtype_ids'] : null;
$data['rarity_id'] = isset($data['rarity_id']) && $data['rarity_id'] ? $data['rarity_id'] : null;

// Use default images for MYO slots without an image provided
if (!isset($data['image'])) {
Expand Down

0 comments on commit 6ad7c4e

Please sign in to comment.