mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 04:47:27 +00:00
fix(live-game): spellbook smite icon
This commit is contained in:
parent
db92410398
commit
eed57126ba
2 changed files with 15 additions and 4 deletions
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
|
|
@ -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}`
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue