fix(live-game): spellbook smite icon

This commit is contained in:
Kalane 2021-12-11 19:17:45 +01:00
parent db92410398
commit eed57126ba
2 changed files with 15 additions and 4 deletions

View file

@ -305,9 +305,16 @@
"description": "",
"summonerLevel": 1,
"cooldown": 0,
"gameModes": [
"ULTBOOK"
],
"gameModes": ["ULTBOOK"],
"iconPath": "/lol-game-data/assets/DATA/Spells/Icons2D/Summoner_Empty.png"
},
{
"id": 55,
"name": "Placeholder and Attack-Smite",
"description": "This slot will be replaced by another champion's ultimate and you will gain Attack-Smite. There will be 30 seconds to select an ultimate. Be prepared!",
"summonerLevel": 1,
"cooldown": 0,
"gameModes": ["ULTBOOK"],
"iconPath": "/lol-game-data/assets/DATA/Spells/Icons2D/Summoner_EmptySmite.png"
}
]

View file

@ -120,6 +120,10 @@ export function getRankImg(leagueData) {
export function getSummonerLink(id) {
if (id === 0) return null
const spellName = summonerSpells.find(s => s.id === id).iconPath.split('/assets/')[1].toLowerCase()
const spell = summonerSpells.find((s) => s.id === id)
if (!spell) return null
const spellName = spell.iconPath.split('/assets/')[1].toLowerCase()
return `https://raw.communitydragon.org/latest/plugins/rcp-be-lol-game-data/global/default/${spellName}`
}