From e6e79a5e8b412b85977bdcb374ed2033f827c5bd Mon Sep 17 00:00:00 2001
From: otowakotori <806682153@qq.com>
Date: Sun, 22 Mar 2020 16:21:20 +0800
Subject: [PATCH] grapple will check if target can be silence/slowed

---
 game/modules/tome/class/interface/Combat.lua | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/game/modules/tome/class/interface/Combat.lua b/game/modules/tome/class/interface/Combat.lua
index ea5236bac9..90c02548ca 100644
--- a/game/modules/tome/class/interface/Combat.lua
+++ b/game/modules/tome/class/interface/Combat.lua
@@ -2746,6 +2746,13 @@ function _M:startGrapple(target)
 		grappleParam["sharePct"] = t.getSharePct(self, t) -- damage shared with grappled set by Clinch
 
 	end
+
+	if grappledParam.silence == 1 and not target:canBe("silence") then
+		grappledParam.silence = 0
+	end
+	if grappledParam.slow == 1 and not target:canBe("slow") then
+		grappledParam.slow = 0
+	end
 	-- oh for the love of god why didn't I rewrite this entire structure
 	grappledParam["src"] = self
 	grappledParam["apply_power"] = self:combatPhysicalpower()
-- 
GitLab