Fix Demolitionist still getting poisoned.

This commit is contained in:
Mari the Deer 2021-09-20 23:22:10 +02:00
commit 088800de9e
2 changed files with 11 additions and 6 deletions

View file

@ -936,9 +936,18 @@ Class Demolitionist : PlayerPawn
}
}
}
override void CheckPoison()
{
// HAHA no
player.poisoncount = 0;
}
override void Tick()
{
Vector3 oldpos = pos;
// can't be poisoned
PoisonDurationReceived = 0;
PoisonPeriodReceived = 0;
PoisonDamageReceived = 0;
Super.Tick();
if ( hasteleported )
{
@ -946,10 +955,6 @@ Class Demolitionist : PlayerPawn
oldpos = pos;
hasteleported = false;
}
// can't be poisoned
PoisonDurationReceived = 0;
PoisonPeriodReceived = 0;
PoisonDamageReceived = 0;
if ( !selflight )
{
selflight = Spawn("DemolitionistSelfLight",pos);