diff --git a/src/Splatoon/Splatoon2/Splatoon2Weapon.php b/src/Splatoon/Splatoon2/Splatoon2Weapon.php index 954e24b..5b027b0 100644 --- a/src/Splatoon/Splatoon2/Splatoon2Weapon.php +++ b/src/Splatoon/Splatoon2/Splatoon2Weapon.php @@ -16,11 +16,11 @@ class Splatoon2Weapon implements ISplatoonWeapon { public function getName(): string { return $this->locale->getString( sprintf('weapons:%s:name', $this->weaponInfo['id']), - $this->weaponInfo['weapon']['name'] + $this->weaponInfo['weapon']['name'] ?? $this->weaponInfo['coop_special_weapon']['name'] ); } public function getImage(): string { - return $this->weaponInfo['weapon']['image']; + return $this->weaponInfo['weapon']['image'] ?? $this->weaponInfo['coop_special_weapon']['image']; } }