With my limited ability i managed to attach to process; VS 10 pointed to this line of code, unsure it it helps.
if (NPC=(PSPAWNINFO)GetSpawnByID(NPC->pSpawn->TargetOfTarget)) {
UpdateIDLifePCT(NPC->SpawnID,NPC->HPCurrent*100/NPC->HPMax);
strcat(Output,MakeHeal(Buffer,NPC));