fix server crash

This commit is contained in:
Nathan TIEN YOU
2022-02-03 22:11:32 +01:00
parent 2738fc852d
commit 84984fa1da
@@ -382,7 +382,7 @@ bool function PlayerCanUseDecoy( entity ownerPlayer ) //For holopilot and HoloPi
if(ownerPlayer.GetOffhandWeapon(1).GetWeaponClassName() == "mp_ability_holopilot" && ownerPlayer.GetOffhandWeapon(1).GetWeaponPrimaryClipCount()<200 && !(ownerPlayer in playerDecoyList))
return false
//Do we need to check isPhaseShifted here? Re-examine when it's possible to get both Phase and Decoy (maybe through burn cards?)
if(player.IsPhaseShifted())
if(ownerPlayer.IsPhaseShifted())
return false
return true
}