Commit 9150b7cb authored by mercury233's avatar mercury233 Committed by GitHub

errata エンシェント・フェアリー・ドラゴン (#2005)

parent 7f439ad0
...@@ -8,8 +8,8 @@ function c25862681.initial_effect(c) ...@@ -8,8 +8,8 @@ function c25862681.initial_effect(c)
e1:SetDescription(aux.Stringid(25862681,0)) e1:SetDescription(aux.Stringid(25862681,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,25862681)
e1:SetCondition(c25862681.sumcon) e1:SetCondition(c25862681.sumcon)
e1:SetCost(c25862681.cost) e1:SetCost(c25862681.cost)
e1:SetTarget(c25862681.sumtg) e1:SetTarget(c25862681.sumtg)
...@@ -18,10 +18,10 @@ function c25862681.initial_effect(c) ...@@ -18,10 +18,10 @@ function c25862681.initial_effect(c)
--destroy --destroy
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(25862681,1)) e2:SetDescription(aux.Stringid(25862681,1))
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetCategory(CATEGORY_DESTROY+CATEGORY_RECOVER+CATEGORY_SEARCH) e2:SetCategory(CATEGORY_DESTROY+CATEGORY_RECOVER+CATEGORY_SEARCH)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1) e2:SetCountLimit(1,25862682)
e2:SetCost(c25862681.cost) e2:SetCost(c25862681.cost)
e2:SetTarget(c25862681.destg) e2:SetTarget(c25862681.destg)
e2:SetOperation(c25862681.desop) e2:SetOperation(c25862681.desop)
...@@ -63,16 +63,17 @@ function c25862681.destg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -63,16 +63,17 @@ function c25862681.destg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,1000) Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,1000)
end end
function c25862681.ffilter(c) function c25862681.ffilter(c,g)
return c:IsType(TYPE_FIELD) and c:IsAbleToHand() return c:IsType(TYPE_FIELD) and c:IsAbleToHand() and not g:IsExists(Card.IsCode,1,nil,c:GetCode())
end end
function c25862681.desop(e,tp,eg,ep,ev,re,r,rp) function c25862681.desop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(tp,LOCATION_FZONE,LOCATION_FZONE) local g=Duel.GetFieldGroup(tp,LOCATION_FZONE,LOCATION_FZONE)
if g:GetCount()>0 then if g:GetCount()>0 then
local ct=Duel.Destroy(g,REASON_EFFECT) Duel.Destroy(g,REASON_EFFECT)
if ct>0 then local og=Duel.GetOperatedGroup()
if og:GetCount()>0 then
Duel.Recover(tp,1000,REASON_EFFECT) Duel.Recover(tp,1000,REASON_EFFECT)
local fg=Duel.GetMatchingGroup(c25862681.ffilter,tp,LOCATION_DECK,0,nil) local fg=Duel.GetMatchingGroup(c25862681.ffilter,tp,LOCATION_DECK,0,nil,og)
if fg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(25862681,2)) then if fg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(25862681,2)) then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
......
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