Commit 94d1c752 authored by Tachibana's avatar Tachibana

rar

parent 7a41eb68
......@@ -91,14 +91,18 @@ function c12051011.xfilters(c)
return c:GetSequence()<5
end
function c12051011.spcon1(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetMatchingGroupCount(c12051011.xfilter,tp,LOCATION_MZONE,0,nil)>0 and not Duel.IsExistingMatchingCard(c12051011.xfilters,tp,LOCATION_MZONE,0,1,nil)
return Duel.GetMatchingGroupCount(c12051011.xfilter,tp,LOCATION_MZONE,0,nil)>0 and not Duel.IsExistingMatchingCard(c12051011.xfilters,tp,LOCATION_MZONE,0,1,nil) and ( Duel.GetFlagEffect(tp,12051011)==0 or e:GetHandler():IsLocation(LOCATION_HAND) )
end
function c12051011.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c12051011.filter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil) and e:GetHandler():IsAbleToRemove() end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
Duel.RegisterFlagEffect(tp,12051011,RESET_CHAIN,0,1)
end
function c12051011.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
if Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)==0 then return end
if e:GetHandler():GetPreviousLocation()==LOCATION_GRAVE then
Duel.RegisterFlagEffect(tp,12051011,RESET_PHASE+PHASE_END,0,1)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c12051011.filter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil)
if g:GetCount()>0 then
......
......@@ -87,7 +87,7 @@ function c12051012.xfilters(c)
return c:GetSequence()<5
end
function c12051012.spcon1(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetMatchingGroupCount(c12051012.xfilter,tp,LOCATION_MZONE,0,nil)>0 and not Duel.IsExistingMatchingCard(c12051012.xfilters,tp,LOCATION_MZONE,0,1,nil) and ( Duel.GetFlagEffect(tp,12051012)==0 or e:GetHandler():GetLocation(LOCATION_HAND) )
return Duel.GetMatchingGroupCount(c12051012.xfilter,tp,LOCATION_MZONE,0,nil)>0 and not Duel.IsExistingMatchingCard(c12051012.xfilters,tp,LOCATION_MZONE,0,1,nil) and ( Duel.GetFlagEffect(tp,12051012)==0 or e:GetHandler():IsLocation(LOCATION_HAND) )
end
function c12051012.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) and e:GetHandler():IsAbleToRemove() end
......
......@@ -85,7 +85,8 @@ function c12051013.cfilter(c)
end
function c12051013.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsAbleToHand() and e:GetHandler():IsAbleToHand() end
if chk==0 then return Duel.IsExistingTarget(c12051013.cfilter,tp,LOCATION_MZONE,0,1,nil) and e:GetHandler():IsAbleToHand() end
if chk==0 then return Duel.IsExistingTarget(c12051013.cfilter,tp,LOCATION_MZONE,0,1,nil) and e:GetHandler():IsAbleToHand() and Duel.GetFlagEffect(tp,12051013)==0 end
Duel.RegisterFlagEffect(tp,12051013,RESET_CHAIN,0,1)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectTarget(tp,c12051013.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
......
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