Blizzard / Blizzard/heroprotocol

How to map from m_abilLink to the actual hero ability?

Open
#27 10 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
401
Forks
77
PR merge metrics
No merged PRs in 30d

Description

Hello,

I'm trying to retrieve abilities casted by heroes, in gameevents I see a SCmdEvent is created every time a hero uses an ability:

```
{'_bits': 264,
'_event': 'NNet.Game.SCmdEvent',
'_eventid': 27,
'_gameloop': 108,
'_userid': {'m_userId': 9},
'm_abil': {'m_abilCmdData': None, 'm_abilCmdIndex': 0, 'm_abilLink': 173},
'm_cmdFlags': 256,
'm_data': {'TargetUnit': {'m_snapshotControlPlayerId': 12,
'm_snapshotPoint': {'x': 849167,
'y': 420404,
'z': 32304},
'm_snapshotUnitLink': 938,
'm_snapshotUpkeepPlayerId': 12,
'm_tag': 46137345,
'm_targetUnitFlags': 111,
'm_timer': 0}},
'm_otherUnit': None,
'm_sequence': 1,
'm_unitGroup': None}
```

Is there any way to determine what ability was the hero using?

Thanks in advance

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.