Commit 5045555f authored by POLYMER's avatar POLYMER

fix

parent 0a5dd345
......@@ -56,21 +56,21 @@ end
function c44401007.datg(e,c)
return c:IsLevelBelow(4) and c:IsRace(RACE_PSYCHO)
end
function c44401007.cfilter(c,e)
return c:IsSetCard(0xa4a) and c:IsFaceup() and c:IsCanBeEffectTarget(e)
function c44401007.cfilter(c)
return c:IsSetCard(0xa4a) and c:IsLocation(LOCATION_MZONE) and c:IsFaceup()
end
function c44401007.gcheck(sg)
return Duel.IsExistingTarget(nil,0,LOCATION_ONFIELD,LOCATION_ONFIELD,#sg,sg)
return sg:FilterCount(c44401007.cfilter,nil)>=(#sg/2)
end
function c44401007.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
local g=Duel.GetMatchingGroup(c44401007.cfilter,tp,LOCATION_MZONE,0,nil,e)
if chk==0 then return g:CheckSubGroup(c44401007.gcheck) end
local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil):Filter(Card.IsCanBeEffectTarget,nil,e)
if chk==0 then return g:CheckSubGroup(c44401007.gcheck,2,2) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
local sg=g:SelectSubGroup(tp,c44401007.gcheck,false,1,#g)
local sg=g:SelectSubGroup(tp,c44401007.gcheck,false,2,#g)
Duel.SetTargetCard(sg)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
Duel.SelectTarget(tp,nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,#sg,#sg,sg)
--Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
--Duel.SelectTarget(tp,nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,#sg,#sg,sg)
e:GetHandler():RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(44401007,0))
end
function c44401007.operation(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -45,18 +45,18 @@ function c44401009.atkop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_OPPO_TURN,1)
e:GetHandler():RegisterEffect(e1)
end
function c44401009.cfilter(c,e)
return c:IsSetCard(0xa4a) and c:IsFaceup() and c:IsCanBeEffectTarget(e) and c:IsAbleToRemove()
function c44401009.cfilter(c)
return c:IsSetCard(0xa4a) and c:IsFaceup() and c:IsAbleToRemove()
end
function c44401009.gcheck(sg,e)
return sg:FilterCount(c44401009.cfilter,nil,e)>=math.floor(#sg/2)
function c44401009.gcheck(sg)
return sg:FilterCount(c44401009.cfilter,nil)>=(#sg/2)
end
function c44401009.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,LOCATION_MZONE,LOCATION_MZONE,nil):Filter(Card.IsCanBeEffectTarget,nil,e)
if chk==0 then return g:CheckSubGroup(c44401009.gcheck,2,2,e) end
if chk==0 then return g:CheckSubGroup(c44401009.gcheck,2,2) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
local sg=g:SelectSubGroup(tp,c44401009.gcheck,false,2,#g,e)
local sg=g:SelectSubGroup(tp,c44401009.gcheck,false,2,#g)
Duel.SetTargetCard(sg)
--Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
--Duel.SelectTarget(tp,Card.IsAbleToRemove,tp,LOCATION_MZONE,LOCATION_MZONE,#sg,#sg,sg)
......
......@@ -50,7 +50,7 @@ function c98920369.cfilter1(c,tp)
return c:IsRace(RACE_REPTILE) and Duel.GetMZoneCount(tp,c)>=1
end
function c98920369.spcost1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroupEx(tp,c98920369.cfilter1,1,nil,REASON_COST,true,tp) end
if chk==0 then return Duel.CheckReleaseGroupEx(tp,c98920369.cfilter1,1,REASON_COST,true,nil,tp) end
local g=Duel.SelectReleaseGroupEx(tp,c98920369.cfilter1,1,1,REASON_COST,true,nil,tp)
Duel.Release(g,REASON_COST)
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