From 847a4879208a0b3681ed5a1d2bc45e187e167d47 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sat, 20 Dec 2025 20:12:43 -0800 Subject: [PATCH] fix character transcendence in roster endpoint --- app/controllers/api/v1/crews_controller.rb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/controllers/api/v1/crews_controller.rb b/app/controllers/api/v1/crews_controller.rb index 4a2d2ea..7879063 100644 --- a/app/controllers/api/v1/crews_controller.rb +++ b/app/controllers/api/v1/crews_controller.rb @@ -158,11 +158,16 @@ module Api uncap_level: item.uncap_level, transcendence_step: item.transcendence_step, flb: canonical&.flb, - ulb: canonical&.ulb, - transcendence: canonical&.transcendence + ulb: canonical&.ulb } - result[:special] = canonical&.special if type == :characters + if type == :characters + result[:special] = canonical&.special + # For characters, transcendence availability is indicated by ulb on non-special chars + result[:transcendence] = !canonical&.special && canonical&.ulb + else + result[:transcendence] = canonical&.transcendence + end result end