From f51a9cb1c9e4f3cddf59ac6ca77b6c8eb313720c Mon Sep 17 00:00:00 2001 From: Mercury233 Date: Thu, 27 Jun 2024 08:59:49 +0800 Subject: [PATCH] Revert "clean checks of EFFECT_KAISER_COLOSSEUM (#2574)" This reverts commit 57082f2d5c3960dfef024e5b7abe331b04b08d72. --- c27204311.lua | 7 +++++++ c35405755.lua | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/c27204311.lua b/c27204311.lua index 397c227d0e..e6509729fa 100644 --- a/c27204311.lua +++ b/c27204311.lua @@ -33,6 +33,13 @@ function c27204311.checkop(e,tp,eg,ep,ev,re,r,rp) end end function c27204311.spcon(e,tp,eg,ep,ev,re,r,rp) + if Duel.IsPlayerAffectedByEffect(tp,EFFECT_KAISER_COLOSSEUM) then + local t1=Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0) + local t2=Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE) + local c1=Duel.GetMatchingGroupCount(c27204311.relfilter,tp,LOCATION_MZONE,0,nil) + local c2=Duel.GetMatchingGroupCount(c27204311.relfilter,tp,0,LOCATION_MZONE,nil) + if t1-c1 >= t2-c2 then return false end + end return Duel.GetFlagEffect(1-tp,27204311)>=5 and (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2) end function c27204311.relfilter(c) diff --git a/c35405755.lua b/c35405755.lua index 3ee33d179a..703757c048 100644 --- a/c35405755.lua +++ b/c35405755.lua @@ -54,6 +54,13 @@ function s.sprcon(e,c) if c==nil then return true end local tp=c:GetControler() local rg=Duel.GetMatchingGroup(s.rfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,1-tp) + if Duel.IsPlayerAffectedByEffect(tp,EFFECT_KAISER_COLOSSEUM) then + local t1=Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0) + local t2=Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE) + local r1=Duel.GetMatchingGroupCount(s.rfilter,tp,LOCATION_MZONE,0,nil,1-tp) + local r2=Duel.GetMatchingGroupCount(s.rfilter,tp,0,LOCATION_MZONE,nil,1-tp) + if t1-r1+1 > t2-r2 then return false end + end return rg:GetCount()>0 and rg:FilterCount(Card.IsReleasable,nil,REASON_SPSUMMON)==rg:GetCount() and aux.mzctcheck(rg,tp) end function s.sprop(e,tp,eg,ep,ev,re,r,rp,c)