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

Function On_NOVA

Source/msg.cpp:2575–2590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2573}
2574
2575DWORD On_NOVA(TCmd *pCmd, int pnum)
2576{
2577 TCmdLoc *p = (TCmdLoc *)pCmd;
2578
2579 if (gbBufferMsgs != 1 && currlevel == plr[pnum].plrlevel && pnum != myplr) {
2580 ClrPlrPath(pnum);
2581 plr[pnum]._pSpell = SPL_NOVA;
2582 plr[pnum]._pSplType = RSPLTYPE_INVALID;
2583 plr[pnum]._pSplFrom = 3;
2584 plr[pnum].destAction = ACTION_SPELL;
2585 plr[pnum].destParam1 = p->x;
2586 plr[pnum].destParam2 = p->y;
2587 }
2588
2589 return sizeof(*p);
2590}
2591
2592DWORD On_SETSHIELD(TCmd *pCmd, int pnum)
2593{

Callers 1

ParseCmdFunction · 0.85

Calls 1

ClrPlrPathFunction · 0.85

Tested by

no test coverage detected