public void Hit(PlayerController killer, string weapon) { if (KartState.UsingWeapon != null) { KartState.UsingWeapon.OnHit(); } if (KartState.TempBuffs["SingleHitProtection"] == 1) { KartState.SetInvincibility(1.75f); KartState.TempBuffs["SingleHitProtection"] = 0; } else if (KartState.IsInvincible() == false) { Die(killer, weapon); } }
public bool IsInvincible() { return(kart_state.IsInvincible()); }