Commit b2b0e187 authored by Nemo Ma's avatar Nemo Ma

fix

parent fc7e30ef
...@@ -90,7 +90,7 @@ end ...@@ -90,7 +90,7 @@ end
function c22348286.costfilter(c) function c22348286.costfilter(c)
return c:IsSetCard(0x70a6) and c:IsType(TYPE_MONSTER) and c:IsAbleToGraveAsCost() return c:IsSetCard(0x70a6) and c:IsAbleToGraveAsCost()
end end
function c22348286.dscost(e,tp,eg,ep,ev,re,r,rp,chk) function c22348286.dscost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c22348286.costfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c22348286.costfilter,tp,LOCATION_DECK,0,1,nil) end
......
--方舟骑士深层归还 --方舟骑士深层归还
c29065511.named_with_Arknight=1
function c29065511.initial_effect(c) function c29065511.initial_effect(c)
aux.AddCodeList(c,29065500)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
......
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
local m=60002245 local m=60002245
local cm=_G["c"..m] local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
Art_g=group.creategroup() Art_g=Group.CreateGroup()
Art_g:KeepAlive() Art_g:KeepAlive()
--tohand --tohand
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,0)) e2:SetDescription(aux.Stringid(m,0))
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_HAND) e2:SetRange(LOCATION_HAND)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
...@@ -30,8 +30,8 @@ function cm.initial_effect(c) ...@@ -30,8 +30,8 @@ function cm.initial_effect(c)
e1:SetType(EFFECT_TYPE_TRIGGER_F+EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_TRIGGER_F+EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetTarget(cm.thtg3) e1:SetTarget(cm.thtg2)
e1:SetOperation(cm.thop3) e1:SetOperation(cm.thop2)
c:RegisterEffect(e1) c:RegisterEffect(e1)
if not cm.global_check then if not cm.global_check then
cm.global_check=true cm.global_check=true
...@@ -45,16 +45,17 @@ end ...@@ -45,16 +45,17 @@ end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp) function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
while tc do while tc do
if tc:IsSetCard(0x6a9) then if tc:IsSetCard(0x6a9) and tc:IsType(TYPE_MONSTER) then
Art_g:AddCard(tc) Art_g:AddCard(tc)
end end
tc=eg:GetNext()
end end
end end
function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsDiscardable() end if chk==0 then return e:GetHandler():IsDiscardable() end
Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD) Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD)
end end
function cm.thfilter(c) function cm.thfilter(c,e,tp)
return c:IsCode(60002246) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCode(60002246) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -72,11 +73,11 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -72,11 +73,11 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.thtg2(e,tp,eg,ep,ev,re,r,rp,chk) function cm.thtg2(e,tp,eg,ep,ev,re,r,rp,chk)
if Art_g:GetClassCount(Card.GetCode)<6 then if Art_g:GetClassCount(Card.GetCode)<6 then
local g=Duel.GetMatchingGroup(cm.sfilter,tp,LOCATION_EXTRA,0,nil) local g=Duel.GetMatchingGroup(cm.sfilter,tp,LOCATION_EXTRA,0,nil,e,tp)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>1 and g:CheckSubGroup(aux.dncheck,2,2) and not Duel.IsPlayerAffectedByEffect(tp,59822133) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>1 and g:CheckSubGroup(aux.dncheck,2,2) and not Duel.IsPlayerAffectedByEffect(tp,59822133) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
else else
local g=Duel.GetMatchingGroup(cm.sfilter,tp,LOCATION_EXTRA,0,nil) local g=Duel.GetMatchingGroup(cm.sfilter,tp,LOCATION_EXTRA,0,nil,e,tp)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>2 and g:CheckSubGroup(aux.dncheck,3,3) and not Duel.IsPlayerAffectedByEffect(tp,59822133) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>2 and g:CheckSubGroup(aux.dncheck,3,3) and not Duel.IsPlayerAffectedByEffect(tp,59822133) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end end
...@@ -85,7 +86,7 @@ function cm.thop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,7 +86,7 @@ function cm.thop2(e,tp,eg,ep,ev,re,r,rp)
if Art_g:GetClassCount(Card.GetCode)<6 then if Art_g:GetClassCount(Card.GetCode)<6 then
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=1 or Duel.IsPlayerAffectedByEffect(tp,59822133) then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=1 or Duel.IsPlayerAffectedByEffect(tp,59822133) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.GetMatchingGroup(cm.sfilter,tp,LOCATION_EXTRA,0,nil) local g=Duel.GetMatchingGroup(cm.sfilter,tp,LOCATION_EXTRA,0,nil,e,tp)
local sg=g:SelectSubGroup(tp,aux.dncheck,false,2,2) local sg=g:SelectSubGroup(tp,aux.dncheck,false,2,2)
if sg and sg:GetCount()==2 then if sg and sg:GetCount()==2 then
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
...@@ -93,7 +94,7 @@ function cm.thop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -93,7 +94,7 @@ function cm.thop2(e,tp,eg,ep,ev,re,r,rp)
else else
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=2 or Duel.IsPlayerAffectedByEffect(tp,59822133) then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=2 or Duel.IsPlayerAffectedByEffect(tp,59822133) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.GetMatchingGroup(cm.sfilter,tp,LOCATION_EXTRA,0,nil) local g=Duel.GetMatchingGroup(cm.sfilter,tp,LOCATION_EXTRA,0,nil,e,tp)
local sg=g:SelectSubGroup(tp,aux.dncheck,false,3,3) local sg=g:SelectSubGroup(tp,aux.dncheck,false,3,3)
if sg and sg:GetCount()==3 then if sg and sg:GetCount()==3 then
Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)
......
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