Commit bd6ed42e authored by salix5's avatar salix5

fix

c25862681 エンシェント・フェアリー・ドラゴン
Add cost to distinguish the 2 ignition effect.

c71645242 ブラック・ガーデン
If this card cannot be destroyed while resolving the effect, it will do nothing.
parent c5db410d
--エンシェント·フェアリー·ドラゴン
--エンシェント・フェアリー・ドラゴン
function c25862681.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1)
......@@ -11,6 +11,7 @@ function c25862681.initial_effect(c)
e1:SetCountLimit(1)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(c25862681.sumcon)
e1:SetCost(c25862681.cost)
e1:SetTarget(c25862681.sumtg)
e1:SetOperation(c25862681.sumop)
c:RegisterEffect(e1)
......@@ -21,10 +22,15 @@ function c25862681.initial_effect(c)
e2:SetCategory(CATEGORY_DESTROY+CATEGORY_RECOVER+CATEGORY_SEARCH)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCost(c25862681.cost)
e2:SetTarget(c25862681.destg)
e2:SetOperation(c25862681.desop)
c:RegisterEffect(e2)
end
function c25862681.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end
function c25862681.sumcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1
end
......
......@@ -111,14 +111,14 @@ function c71645242.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function c71645242.spop2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
if not (c:IsRelateToEffect(e) and c:IsDestructable() and c:IsDestructable(e)) then return end
local dg=Duel.GetMatchingGroup(c71645242.desfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
local atk=dg:GetSum(Card.GetAttack)
dg:AddCard(c)
Duel.Destroy(dg,REASON_EFFECT)
Duel.BreakEffect()
local tc=Duel.GetFirstTarget()
if not (c:IsLocation(LOCATION_SZONE) and c:GetSequence()==5) and tc:IsRelateToEffect(e) and tc:GetAttack()==atk then
if tc:IsRelateToEffect(e) and tc:GetAttack()==atk then
Duel.SpecialSummon(tc,0x20,tp,tp,false,false,POS_FACEUP)
end
end
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