MCPcopy Create free account
hub / github.com/diasurgical/devilution / On_RATTACKPID

Function On_RATTACKPID

Source/msg.cpp:1902–1913  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1900}
1901
1902DWORD On_RATTACKPID(TCmd *pCmd, int pnum)
1903{
1904 TCmdParam1 *p = (TCmdParam1 *)pCmd;
1905
1906 if (gbBufferMsgs != 1 && currlevel == plr[pnum].plrlevel) {
1907 ClrPlrPath(pnum);
1908 plr[pnum].destAction = ACTION_RATTACKPLR;
1909 plr[pnum].destParam1 = p->wParam1;
1910 }
1911
1912 return sizeof(*p);
1913}
1914
1915DWORD On_SPELLID(TCmd *pCmd, int pnum)
1916{

Callers 1

ParseCmdFunction · 0.85

Calls 1

ClrPlrPathFunction · 0.85

Tested by

no test coverage detected