Commit 5dedc518 authored by TanakaKotoha's avatar TanakaKotoha

fix

parent 65ee80f7
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
function c33400014.initial_effect(c) function c33400014.initial_effect(c)
c:EnableCounterPermit(0x34f) c:EnableCounterPermit(0x34f)
--xyz summon --xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x3341),8,2) aux.AddXyzProcedure(c,nil,8,2,nil,nil,99)
c:EnableReviveLimit() c:EnableReviveLimit()
--direct attack --direct attack
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -82,9 +82,15 @@ end ...@@ -82,9 +82,15 @@ end
function c61000000.spfilter(c,e,tp) function c61000000.spfilter(c,e,tp)
return c:IsSetCard(0x980) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE) return c:IsSetCard(0x980) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE)
end end
function c61000000.cfilter2(c)
return c:IsFaceup() and c:IsCode(33500901) and c:IsType(TYPE_MONSTER)
end
function c61000000.drcon(e,tp,eg,ep,ev,re,r,rp) function c61000000.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN) return (e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) or Duel.IsExistingMatchingCard(cm.cfilter2,tp,LOCATION_MZONE,0,1,nil)) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
end end
--function c61000000.drcon(e,tp,eg,ep,ev,re,r,rp)
-- return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
--end
function c61000000.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c61000000.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c61000000.spfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c61000000.spfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) end
......
...@@ -84,9 +84,15 @@ end ...@@ -84,9 +84,15 @@ end
function c61000001.filter(c) function c61000001.filter(c)
return c:IsSetCard(0x980) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x980) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function c61000001.cfilter2(c)
return c:IsFaceup() and c:IsCode(33500901) and c:IsType(TYPE_MONSTER)
end
function c61000001.drcon(e,tp,eg,ep,ev,re,r,rp) function c61000001.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN) return (e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) or Duel.IsExistingMatchingCard(cm.cfilter2,tp,LOCATION_MZONE,0,1,nil)) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
end end
--function c61000001.drcon(e,tp,eg,ep,ev,re,r,rp)
-- return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
--end
function c61000001.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c61000001.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c61000001.filter,tp,LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c61000001.filter,tp,LOCATION_GRAVE,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE)
......
...@@ -91,9 +91,15 @@ function c61000002.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -91,9 +91,15 @@ function c61000002.operation(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e3) tc:RegisterEffect(e3)
end end
end end
function c61000002.cfilter2(c)
return c:IsFaceup() and c:IsCode(33500901) and c:IsType(TYPE_MONSTER)
end
function c61000002.drcon(e,tp,eg,ep,ev,re,r,rp) function c61000002.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN) return (e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) or Duel.IsExistingMatchingCard(cm.cfilter2,tp,LOCATION_MZONE,0,1,nil)) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
end end
--function c61000002.drcon(e,tp,eg,ep,ev,re,r,rp)
-- return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
--end
function c61000002.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c61000002.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
......
...@@ -78,9 +78,15 @@ end ...@@ -78,9 +78,15 @@ end
function c61000003.filter(c) function c61000003.filter(c)
return c:IsFaceup() and c:IsCanTurnSet() return c:IsFaceup() and c:IsCanTurnSet()
end end
function c61000003.cfilter2(c)
return c:IsFaceup() and c:IsCode(33500901) and c:IsType(TYPE_MONSTER)
end
function c61000003.drcon(e,tp,eg,ep,ev,re,r,rp) function c61000003.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN) return (e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) or Duel.IsExistingMatchingCard(cm.cfilter2,tp,LOCATION_MZONE,0,1,nil)) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
end end
--function c61000003.drcon(e,tp,eg,ep,ev,re,r,rp)
-- return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
--end
function c61000003.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c61000003.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingTarget(c61000003.filter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingTarget(c61000003.filter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
......
...@@ -81,9 +81,15 @@ end ...@@ -81,9 +81,15 @@ end
function c61000004.drfilter(c) function c61000004.drfilter(c)
return c:IsSetCard(0x980) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable() return c:IsSetCard(0x980) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable()
end end
function c61000004.cfilter2(c)
return c:IsFaceup() and c:IsCode(33500901) and c:IsType(TYPE_MONSTER)
end
function c61000004.drcon(e,tp,eg,ep,ev,re,r,rp) function c61000004.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN) return (e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) or Duel.IsExistingMatchingCard(cm.cfilter2,tp,LOCATION_MZONE,0,1,nil)) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
end end
--function c61000004.drcon(e,tp,eg,ep,ev,re,r,rp)
-- return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
--end
function c61000004.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c61000004.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and Duel.IsExistingMatchingCard(c61000004.drfilter,tp,LOCATION_DECK,0,1,nil) end and Duel.IsExistingMatchingCard(c61000004.drfilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -78,9 +78,15 @@ function c61000005.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -78,9 +78,15 @@ function c61000005.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
function c61000005.cfilter2(c)
return c:IsFaceup() and c:IsCode(33500901) and c:IsType(TYPE_MONSTER)
end
function c61000005.drcon(e,tp,eg,ep,ev,re,r,rp) function c61000005.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN) return (e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) or Duel.IsExistingMatchingCard(cm.cfilter2,tp,LOCATION_MZONE,0,1,nil)) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
end end
--function c61000005.drcon(e,tp,eg,ep,ev,re,r,rp)
-- return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
--end
function c61000005.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c61000005.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToGrave,tp,LOCATION_ONFIELD,0,1,nil) end if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToGrave,tp,LOCATION_ONFIELD,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
......
...@@ -68,9 +68,15 @@ end ...@@ -68,9 +68,15 @@ end
function c61000006.filter1(c) function c61000006.filter1(c)
return c:IsSetCard(0x980) and c:IsAbleToDeck() return c:IsSetCard(0x980) and c:IsAbleToDeck()
end end
function c61000006.cfilter2(c)
return c:IsFaceup() and c:IsCode(33500901) and c:IsType(TYPE_MONSTER)
end
function c61000006.drcon(e,tp,eg,ep,ev,re,r,rp) function c61000006.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN) return (e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) or Duel.IsExistingMatchingCard(cm.cfilter2,tp,LOCATION_MZONE,0,1,nil)) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
end end
--function c61000006.drcon(e,tp,eg,ep,ev,re,r,rp)
-- return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsPreviousPosition(POS_FACEDOWN)
--end
function c61000006.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c61000006.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingTarget(c61000006.filter1,tp,LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingTarget(c61000006.filter1,tp,LOCATION_GRAVE,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,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