From 247a5976f6c68d39e5a498d14d40132fa3018810 Mon Sep 17 00:00:00 2001 From: willuwontu Date: Sun, 9 Jan 2022 14:09:36 -0800 Subject: [PATCH] Update QuickReflexesCard.cs Currently, it triggers even when blocked and silenced, this patches that. --- Cards/QuickReflexesCard.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cards/QuickReflexesCard.cs b/Cards/QuickReflexesCard.cs index a0c34fe..a73d211 100644 --- a/Cards/QuickReflexesCard.cs +++ b/Cards/QuickReflexesCard.cs @@ -117,7 +117,8 @@ private static void Prefix(ProjectileHit __instance, Vector2 hitPoint, Vector2 h if (healthHandler && healthHandler.GetComponent() && healthHandler.GetComponent()) { Block block = healthHandler.GetComponent(); - if (healthHandler.GetComponent() != null && block.counter >= block.Cooldown()) + CharacterData data = healthHandler.GetComponent(); + if (healthHandler.GetComponent() != null && block.counter >= block.Cooldown() && !data.isSilenced && !data.isStunned) { wasBlocked = true; if (healthHandler.GetComponent().view.IsMine) { block.TryBlock(); }