Buffs and Debuffs
Article 3056890, Status: NOT VALIDATED
Table of Contents
❓Issue/Question
- How to find Buffs and Debuffs in the feed
- Events for Buffs and Debuffs
💻Environment/Context
- Series Events
- Series State
- LoL
👌Resolution/Answer
There's a field called statusEffects in every player's object. This field shows all active buffs that the player has.
"statusEffects": [
{
"id": UUID,
"name": string,
"clock": {
"id": ID
"type": string
"ticking": bool
"ticksBackwards": bool
"currentSeconds": int
"quantity": int
}
}
],
When a player activates a new buff, a player-acquired-statusEffect event is emitted. The event looks like this
"player-acquired-statusEffect":{
"id":"f8f7faae-d616-446a-8ccb-87708f97dcf1"
"includesFullState":false
"type":"player-acquired-statusEffect"
"actor":{...}
"action":"acquired"
"target":{...}
"seriesStateDelta":{
"id":"3"
"games": [
"0": {
"teams":[
0:{
"id":"45055"
"players":[
0:{
"id":"25026"
"statusEffects": [
{
"id": UUID,
"name": "Hand of Baron",
"clock": {
"id": ID
"type": "hand-of-baron"
"ticking": true
"ticksBackwards": true
"currentSeconds": 180
"quantity": 1
}
}
],
}
]
}
]
}
]
"games":[...]
}
"seriesState":{...}
}
When a player loses a buff, the feed emits a player-lost-statusEffect event that looks as follows
"player-lost-statusEffect":{
"id":"f8f7faae-d616-446a-8ccb-87708f97dcf1"
"includesFullState":false
"type":"player-lost-statusEffect"
"actor":{...}
"action":"lost"
"target":{
"type": "statusEffect"
"id": UUID
}
"seriesStateDelta":{
"id":"3"
"teams":[
0:{
"id":"45055"
"players":[
0:{
"id":"25026"
"statusEffects": [
],
}
]
}
]
"games":[...]
}
"seriesState":{...}
🗒️Scratch Pad