RemovePoisonAndBleed inv accessed none fix
This commit is contained in:
parent
9d5fba5344
commit
3247720a46
@ -182,21 +182,32 @@ simulated function HandleNiceHealingMechanicsAndSkills
|
|||||||
healed.bZedTimeInvincible = true;
|
healed.bZedTimeInvincible = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
simulated function RemovePoisonAndBleed(NiceHumanPawn healed){
|
|
||||||
|
simulated function RemovePoisonAndBleed(NiceHumanPawn healed)
|
||||||
|
{
|
||||||
local Inventory I;
|
local Inventory I;
|
||||||
local MeanReplicationInfo MRI;
|
local MeanReplicationInfo MRI;
|
||||||
|
|
||||||
|
// log spam fix
|
||||||
|
if (healed == none)
|
||||||
|
return;
|
||||||
|
|
||||||
// No bleeding
|
// No bleeding
|
||||||
MRI = class'MeanReplicationInfo'.static.
|
MRI = class'MeanReplicationInfo'.static.
|
||||||
findSZri(healed.PlayerReplicationInfo);
|
findSZri(healed.PlayerReplicationInfo);
|
||||||
if(MRI != none)
|
if (MRI != none)
|
||||||
MRI.stopBleeding();
|
MRI.stopBleeding();
|
||||||
// No poison
|
// No poison
|
||||||
if(healed.inventory == none) return;
|
if (healed.inventory == none)
|
||||||
for(I = healed.inventory; I != none; I = I.inventory){
|
return;
|
||||||
if(MeanPoisonInventory(I) != none)
|
|
||||||
|
for (I = healed.inventory; I != none; I = I.inventory)
|
||||||
|
{
|
||||||
|
if (MeanPoisonInventory(I) != none)
|
||||||
I.Destroy();
|
I.Destroy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tells server to heal given human pawn.
|
// Tells server to heal given human pawn.
|
||||||
simulated function ServerHealTarget(NiceHumanPawn healed, float charPotency,
|
simulated function ServerHealTarget(NiceHumanPawn healed, float charPotency,
|
||||||
Pawn instigator){
|
Pawn instigator){
|
||||||
|
Loading…
Reference in New Issue
Block a user