Commit feac604b authored by Nemo Ma's avatar Nemo Ma

fix

parent 28471f40
--方舟骑士共赴黎明
c29012513.named_with_Arknight=1
function c29012513.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
......@@ -9,8 +10,8 @@ function c29012513.initial_effect(c)
e1:SetTarget(c29012513.target)
e1:SetOperation(c29012513.activate)
c:RegisterEffect(e1)
c29012513.kinkuaoi_LightAK=true
end
c29012513.kinkuaoi_Lightakm=true
function c29012513.filter(c,ft,e,tp)
return (c:IsSetCard(0x87af) or (_G["c"..c:GetCode()] and _G["c"..c:GetCode()].named_with_Arknight)) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsType(TYPE_MONSTER) and (c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)))
end
......
......@@ -43,14 +43,14 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmDecktop(p,5)
local g=Duel.GetDecktopGroup(p,5)
Duel.ConfirmDecktop(tp,5)
local g=Duel.GetDecktopGroup(tp,5)
local ct=5
if #g>0 then
local mg1=Duel.GetRitualMaterial(tp)
local mg2=g:Filter(cm.mfilter,nil)
mg1:Merge(mg2)
if Duel.IsExistingMatchingCard(cm.RitualUltimateFilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,cm.filter,e,tp,mg1,nil,Card.GetLevel,"Greater") and Duel.SelectYesNo(tp,aux.Stringid(93754402,1)) then
if Duel.IsExistingMatchingCard(cm.RitualUltimateFilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,cm.filter,e,tp,mg1,nil,Card.GetLevel,"Greater") and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
Duel.BreakEffect()
::cancel::
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
......
......@@ -63,11 +63,8 @@ function cm.initial_effect(c)
e8:SetCode(EVENT_SUMMON_SUCCESS)
c:RegisterEffect(e8)
end
function cm.cfilter1(c)
return c:IsFaceup() and c:IsType(TYPE_XYZ) and cm.Cardinal(c)
end
function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter1,tp,LOCATION_MZONE,0,1,nil) and e:GetHandler():GetControler()==e:GetHandler():GetOwner()
function cm.thcon(e,eg,ep,ev,re,r,rp)
return e:GetHandler():GetControler()==e:GetHandler():GetOwner()
end
function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end
......
......@@ -42,7 +42,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(fc,REASON_RULE)
Duel.BreakEffect()
end
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.MoveToField(tc,tp,tp,LOCATION_FZONE,POS_FACEUP,true)
local te=tc:GetActivateEffect()
te:UseCountLimit(tp,1,true)
local tep=tc:GetControler()
......
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