mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-21 19:51:27 +00:00
Fixed poison not clearing on revive
This commit is contained in:
parent
702ef493f0
commit
30dd6c91ec
1 changed files with 13 additions and 0 deletions
|
@ -7806,6 +7806,19 @@ void AActor::Revive()
|
|||
target = nullptr;
|
||||
lastenemy = nullptr;
|
||||
|
||||
// Make sure to clear poison damage.
|
||||
PoisonDamageReceived = 0;
|
||||
PoisonDamageTypeReceived = NAME_None;
|
||||
PoisonDurationReceived = 0;
|
||||
PoisonPeriodReceived = 0;
|
||||
Poisoner = nullptr;
|
||||
if (player != nullptr)
|
||||
{
|
||||
player->poisoncount = 0;
|
||||
player->poisoner = nullptr;
|
||||
player->poisontype = player->poisonpaintype = NAME_None;
|
||||
}
|
||||
|
||||
// [RH] If it's a monster, it gets to count as another kill
|
||||
if (CountsAsKill())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue