Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • Client Help

Buffs and Debuffs

Article 3056890, Status: NOT VALIDATED

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Client Help
+ More

Table of Contents

❓Issue/Question 💻Environment/Context 👌Resolution/Answer 🗒️Scratch Pad

❓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

 

 

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Why did a game in LoL take so long to finish?
Privacy Policy
Esports Players Privacy Notice
Imprint
Careers
GRID® 2022 | All Rights Reserved
Expand