Commit 499e91b3 authored by mercury233's avatar mercury233 Committed by GitHub

fix センサー万別 (#1574)

parent 89af1f6f
...@@ -29,6 +29,13 @@ function c24207889.initial_effect(c) ...@@ -29,6 +29,13 @@ function c24207889.initial_effect(c)
local e6=e4:Clone() local e6=e4:Clone()
e6:SetCode(EFFECT_CANNOT_FLIP_SUMMON) e6:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
c:RegisterEffect(e6) c:RegisterEffect(e6)
if not c24207889.global_check then
c24207889.global_check=true
c24207889[0]=Group.CreateGroup()
c24207889[0]:KeepAlive()
c24207889[1]=Group.CreateGroup()
c24207889[1]:KeepAlive()
end
end end
function c24207889.rmfilter(c,rc) function c24207889.rmfilter(c,rc)
return c:IsFaceup() and c:IsRace(rc) return c:IsFaceup() and c:IsRace(rc)
...@@ -51,6 +58,7 @@ function c24207889.adjustop(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,6 +58,7 @@ function c24207889.adjustop(e,tp,eg,ep,ev,re,r,rp)
local rg=g:Filter(Card.IsRace,nil,race) local rg=g:Filter(Card.IsRace,nil,race)
local rc=rg:GetCount() local rc=rg:GetCount()
if rc>1 then if rc>1 then
rg:Sub(c24207889[p])
Duel.Hint(HINT_SELECTMSG,p,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,p,HINTMSG_TOGRAVE)
local dg=rg:Select(p,rc-1,rc-1,nil) local dg=rg:Select(p,rc-1,rc-1,nil)
sg:Merge(dg) sg:Merge(dg)
...@@ -62,4 +70,9 @@ function c24207889.adjustop(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,4 +70,9 @@ function c24207889.adjustop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(sg,REASON_RULE) Duel.SendtoGrave(sg,REASON_RULE)
Duel.Readjust() Duel.Readjust()
end end
for p=0,1 do
local g=Duel.GetMatchingGroup(Card.IsFaceup,p,LOCATION_MZONE,0,nil)
c24207889[p]:Clear()
c24207889[p]:Merge(g)
end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment