Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "clean checks of EFFECT_KAISER_COLOSSEUM" #2579

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions c27204311.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
7 changes: 7 additions & 0 deletions c35405755.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down