Commit b196eade authored by Tachibana's avatar Tachibana

watele

parent 09364617
Pipeline #6700 passed with stages
in 39 minutes and 57 seconds
No preview for this file type
...@@ -6,6 +6,7 @@ function c12301102.initial_effect(c) ...@@ -6,6 +6,7 @@ function c12301102.initial_effect(c)
e0:SetType(EFFECT_TYPE_ACTIVATE) e0:SetType(EFFECT_TYPE_ACTIVATE)
e0:SetCode(EVENT_FREE_CHAIN) e0:SetCode(EVENT_FREE_CHAIN)
e0:SetCost(c12301102.accs) e0:SetCost(c12301102.accs)
e0:SetTarget(function(chk) if chk==0 then return true end end)
e0:SetOperation(c12301102.acop) e0:SetOperation(c12301102.acop)
e0:SetCountLimit(1,12301102+EFFECT_COUNT_CODE_OATH) e0:SetCountLimit(1,12301102+EFFECT_COUNT_CODE_OATH)
c:RegisterEffect(e0) c:RegisterEffect(e0)
......
...@@ -7,6 +7,7 @@ function c12301117.initial_effect(c) ...@@ -7,6 +7,7 @@ function c12301117.initial_effect(c)
e1:SetDescription(aux.Stringid(12301117,0)) e1:SetDescription(aux.Stringid(12301117,0))
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetCost(c12301117.spcs) e1:SetCost(c12301117.spcs)
e1:SetTarget(c12301117.sptg)
e1:SetOperation(c12301117.spop) e1:SetOperation(c12301117.spop)
e1:SetCountLimit(1,12301117) e1:SetCountLimit(1,12301117)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -38,11 +39,14 @@ function c12301117.filspcs(c,tp) ...@@ -38,11 +39,14 @@ function c12301117.filspcs(c,tp)
end end
function c12301117.spcs(e,tp,eg,ep,ev,re,r,rp,chk) function c12301117.spcs(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return Duel.IsExistingMatchingCard(c12301117.filspcs,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,c,tp) and c:IsCanBeSpecialSummoned(e,nil,tp,false,false) end if chk==0 then return Duel.IsExistingMatchingCard(c12301117.filspcs,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,c,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local rg=Duel.SelectMatchingCard(tp,c12301117.filspcs,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,1,c) local rg=Duel.SelectMatchingCard(tp,c12301117.filspcs,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,1,c)
Duel.Release(rg,REASON_COST) Duel.Release(rg,REASON_COST)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,tp,LOCATION_HAND) end
function c12301117.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,nil,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,tp,LOCATION_HAND)
end end
function c12301117.spop(e,tp,eg,ep,ev,re,r,rp) function c12301117.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -24,6 +24,7 @@ function cm.initial_effect(c) ...@@ -24,6 +24,7 @@ function cm.initial_effect(c)
e2:SetCountLimit(1,m+1) e2:SetCountLimit(1,m+1)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCost(cm.frcost) e2:SetCost(cm.frcost)
e2:SetTarget(cm.frtg)
e2:SetOperation(cm.frop) e2:SetOperation(cm.frop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--tograve --tograve
...@@ -70,6 +71,9 @@ end ...@@ -70,6 +71,9 @@ end
function cm.frcost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.frcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end
function cm.frtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetChainLimit(aux.FALSE) Duel.SetChainLimit(aux.FALSE)
end end
function cm.frop(e,tp,eg,ep,ev,re,r,rp) function cm.frop(e,tp,eg,ep,ev,re,r,rp)
......
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