Commit ea7c598a authored by Satty's avatar Satty

fix

parent 28e46dd6
Pipeline #35605 passed with stages
in 41 minutes and 32 seconds
......@@ -72,7 +72,8 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp)
if dg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local tdg=dg:Select(tp,1,dg:GetCount(),nil)
local tdg2=Duel.SendtoDeck(tdg,tp,2,REASON_EFFECT)
Duel.SendtoDeck(tdg,tp,2,REASON_EFFECT)
local tdg2=Duel.GetOperatedGroup()
local tc1=tdg2:GetFirst()
local ct1=0
local ct2=0
......
......@@ -81,7 +81,7 @@ function s.spcon(e,tp,eg,ep,ev,re,r,rp)
return re:GetOwnerPlayer()==tp and re:IsHasType(EFFECT_TYPE_ACTIVATE) and not re:GetHandler():IsStatus(STATUS_ACT_FROM_HAND)
end
function s.cfilter(c,tp)
return c:IsPreviousControler(tp) and c:IsPreviousPosition(POS_FACEDOWN)
return c:IsPreviousControler(tp) and c:IsPreviousPosition(POS_FACEDOWN) and c:IsPreviousLocation(LOCATION_ONFIELD)
end
function s.spcon2(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.cfilter,1,nil,tp)
......
......@@ -21,13 +21,13 @@ function s.cfilter(c)
return c:IsSetCard(0x6ca1) and c:IsType(TYPE_MONSTER) or (c:IsSetCard(0x9ca1) and c:IsType(TYPE_TRAP) and c:IsType(TYPE_CONTINUOUS))
end
function s.setfilter(c)
return c:IsFaceup() and c:IsCanTurnSet() and not c:IsStatus(STATUS_LEAVE_CONFIRMED)
return c:IsFaceup() and c:IsCanTurnSet() and not c:IsStatus(STATUS_LEAVE_CONFIRMED) and not c:IsLocation(LOCATION_PZONE)
end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND,0,1,nil) end
local ct=Duel.GetMatchingGroupCount(s.setfilter,tp,0,LOCATION_ONFIELD,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND,0,1,ct,nil)
local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND,0,1,ct-1,nil)
Duel.ConfirmCards(1-tp,g)
e:SetLabel(#g+1)
end
......
......@@ -37,7 +37,7 @@ function s.initial_effect(c)
c:RegisterEffect(e4)
end
function s.cfilter(c)
return c:IsFaceup() and c.MoJin and c:IsType(TYPE_MONSTER)
return c:IsFaceup() and c.MoJin and c:IsType(TYPE_MONSTER) and and c:IsLevelAbove(10)
end
function s.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil)
......
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