Commit 0b98a849 authored by TanakaKotoha's avatar TanakaKotoha

daniaozhuanzhuanzhuan

parent 40f591c2
Pipeline #2483 failed with stages
in 13 minutes and 24 seconds
......@@ -47,12 +47,12 @@ function cm.chainfilter(re,tp,cid)
return false
end
function cm.spfilter(c)
return c:IsSetCard(0x5fae) and c:IsType(TYPE_MONSTER) and not c:IsPublic()
return c:IsSetCard(0x5fa9) and c:IsType(TYPE_MONSTER) and not c:IsPublic()
end
function cm.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_HAND,0,3,nil) and Duel.GetActivityCount(tp,ACTIVITY_BATTLE_PHASE)==0 and not Duel.CheckPhaseActivity() and Duel.GetCustomActivityCount(m,tp,ACTIVITY_CHAIN)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
return Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_HAND,0,3,nil) and Duel.GetActivityCount(tp,ACTIVITY_BATTLE_PHASE)==0 and not Duel.CheckPhaseActivity() and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
end
function cm.spop(e,tp,eg,ep,ev,re,r,rp,chk)
local tp=e:GetHandlerPlayer()
......@@ -81,14 +81,14 @@ function cm.actop(e,tp,eg,ep,ev,re,r,rp)
if cost then cost(te,tep,eg,ep,ev,re,r,rp,1) end
end
end
function cm.costfilter(c)
return c:IsRace(RACE_WARRIOR) and c:IsAbleToDeckAsCost()
function cm.costfilter(c,tp)
return c:IsRace(RACE_WARRIOR) and c:IsAbleToDeckAsCost() and Duel.IsExistingMatchingCard(cm.costfilter2,tp,LOCATION_GRAVE,0,1,c)
end
function cm.costfilter2(c)
return c:IsRace(RACE_MACHINE) and c:IsAbleToDeckAsCost()
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.costfilter,tp,LOCATION_GRAVE,0,1,nil) and Duel.IsExistingMatchingCard(cm.costfilter2,tp,LOCATION_GRAVE,0,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(cm.costfilter,tp,LOCATION_GRAVE,0,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g1=Duel.SelectMatchingCard(tp,cm.costfilter,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
......
......@@ -45,6 +45,9 @@ function cm.initial_effect(c)
Duel.RegisterEffect(ge1,0)
end
end
function cm.tgfilter(c)
return c:IsSetCard(0x5fa9) and c:IsAbleToHand()
end
function cm.cfilter(c,tp)
return c:IsControler(tp) and c:IsPreviousLocation(LOCATION_DECK)
end
......
......@@ -67,6 +67,9 @@ end
function cm.spfilter(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function cm.tgfilter(c)
return c:IsSetCard(0x5fa9) and c:IsAbleToHand()
end
function cm.spop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local tt=1
......
......@@ -36,6 +36,9 @@ function cm.initial_effect(c)
e2:SetOperation(cm.thop)
c:RegisterEffect(e2)
end
function cm.tgfilter(c)
return c:IsSetCard(0x5fa9) and c:IsAbleToHand()
end
function cm.cfilter(c,tp)
return c:IsFaceup() and c:IsSetCard(0x5fa9) and c:IsLevelAbove(6) and c:IsControler(tp)
end
......
......@@ -74,6 +74,9 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end
end
function cm.tgfilter(c)
return c:IsSetCard(0x5fa9) and c:IsAbleToHand()
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,0,LOCATION_MZONE)
......
......@@ -35,6 +35,9 @@ function cm.initial_effect(c)
e7:SetOperation(cm.desop)
c:RegisterEffect(e7)
end
function cm.tgfilter(c)
return c:IsSetCard(0x5fa9) and c:IsAbleToHand()
end
function cm.comtfilter(c,tp)
return c:IsFaceup() and c:IsAbleToHand()
and c:IsSetCard(0x5fa9) and Duel.GetMZoneCount(tp,c,tp)>0
......
......@@ -131,10 +131,23 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
Duel.SetChainLimit(cm.chainlm)
end
function cm.tgfilter(c)
return c:IsSetCard(0x5fa9) and c:IsAbleToHand()
end
function cm.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(cm.spfilter),tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
Duel.Draw(tp,2,REASON_EFFECT)
local tt=2
if tt>0 and Duel.IsPlayerAffectedByEffect(tp,12014002) and Duel.IsExistingMatchingCard(cm.tgfilter,tp,LOCATION_DECK,0,tt,nil) and Duel.SelectYesNo(tp,aux.Stringid(12014002,4)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,cm.tgfilter,tp,LOCATION_DECK,0,tt,tt,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,tp,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
elseif tt>0 then
Duel.Draw(tp,tt,REASON_EFFECT)
end
end
\ No newline at end of file
--战场的巫鸣鸟 迦陵频伽
local m=12037015
local cm=_G["c"..m]
function c12037015.initial_effect(c)
--spsummon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(49879995,0))
e1:SetDescription(aux.Stringid(12037015,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetRange(LOCATION_HAND)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCondition(c12037015.spcon)
e1:SetTarget(c12037015.sptg)
e1:SetOperation(c12037015.spop)
e1:SetCondition(cm.spcon)
e1:SetTarget(cm.sptg)
e1:SetOperation(cm.spop)
c:RegisterEffect(e1)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
......@@ -21,21 +23,21 @@ function c12037015.initial_effect(c)
e3:SetValue(1)
c:RegisterEffect(e3)
end
function c12037015.filter(c)
function cm.filter(c)
return c:IsAttackPos()
end
function c12037015.spcon(e,tp,eg,ep,ev,re,r,rp)
function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler()
if not eg or #eg>1 then return false end
local mat=eg:GetFirst():GetMaterial()
return mat and #mat>1 and mat:GetFirst():GetLevel()==mat:GetNext():GetLevel()
end
function c12037015.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c12037015.spop(e,tp,eg,ep,ev,re,r,rp)
function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local rc=eg:GetFirst()
if rc:IsRelateToEffect(e) and c:IsRelateToEffect(e) then
......
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