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

Function On_ENDSHIELD

Source/msg.cpp:2529–2544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2527}
2528
2529DWORD On_ENDSHIELD(TCmd *pCmd, int pnum)
2530{
2531 int i;
2532
2533 if (gbBufferMsgs != 1 && pnum != myplr && currlevel == plr[pnum].plrlevel) {
2534 for (i = 0; i < nummissiles; i++) {
2535 int mi = missileactive[i];
2536 if (missile[mi]._mitype == MIS_MANASHIELD && missile[mi]._misource == pnum) {
2537 ClearMissileSpot(mi);
2538 DeleteMissile(mi, i);
2539 }
2540 }
2541 }
2542
2543 return sizeof(*pCmd);
2544}
2545
2546DWORD On_CHEAT_EXPERIENCE(TCmd *pCmd, int pnum)
2547{

Callers 1

ParseCmdFunction · 0.85

Calls 2

ClearMissileSpotFunction · 0.85
DeleteMissileFunction · 0.85

Tested by

no test coverage detected