Fix player taunt frequency (and there was much rejoicing)

This commit is contained in:
sirlemonhead 2019-11-25 11:53:27 +00:00 committed by Christoph Oelckers
parent 979f40f900
commit aba3e85c8e

View file

@ -1807,17 +1807,17 @@ void runlist_DamageEnemy(int nSprite, int nSprite2, short nDamage)
}
short nRun = sprite[nSprite].owner;
if (nRun <= -1) {
return;
}
short nPreCreaturesLeft = nCreaturesLeft;
runlist_SendMessageToRunRec(nRun, (nSprite2 & 0xFFFF) | 0x80000, nDamage * 4);
if (nCreaturesLeft <= 0) {
return;
}
// is there now one less creature? (has one died)
if (nPreCreaturesLeft > nCreaturesLeft)
{
if (sprite[nSprite2].statnum != 100) {
return;
}
@ -1845,5 +1845,6 @@ void runlist_DamageEnemy(int nSprite, int nSprite2, short nDamage)
nTauntTimer[nPlayer] = RandomSize(3) + 3;
}
}
}
END_PS_NS