(Hotfix) Fix summon transcendence (#129)
Manually setting summon transcendence was not working due to a change that passed in the canonical object instead of the grid object to `max_uncap_level`
This commit is contained in:
parent
8381c668bc
commit
39b353d9bd
2 changed files with 4 additions and 5 deletions
|
|
@ -51,7 +51,7 @@ module Api
|
||||||
end
|
end
|
||||||
|
|
||||||
def admin_mode
|
def admin_mode
|
||||||
if current_user && current_user.admin? && request.headers['X-Admin-Mode']
|
if current_user&.admin? && request.headers['X-Admin-Mode']
|
||||||
@admin_mode ||= request.headers['X-Admin-Mode'] == 'true'
|
@admin_mode ||= request.headers['X-Admin-Mode'] == 'true'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -114,12 +114,11 @@ module Api
|
||||||
private
|
private
|
||||||
|
|
||||||
def max_uncap_level(summon)
|
def max_uncap_level(summon)
|
||||||
object = summon.summon
|
if summon.flb && !summon.ulb && !summon.xlb
|
||||||
if object.flb && !object.ulb && !object.xlb
|
|
||||||
4
|
4
|
||||||
elsif object.ulb && !object.xlb
|
elsif summon.ulb && !summon.xlb
|
||||||
5
|
5
|
||||||
elsif object.xlb
|
elsif summon.xlb
|
||||||
6
|
6
|
||||||
else
|
else
|
||||||
3
|
3
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue