Commit dca7df49 authored by DailyShana's avatar DailyShana

fix

parent 52707bda
......@@ -33,7 +33,7 @@ end
function c37507488.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) and Duel.SendtoHand(tc,nil,REASON_EFFECT)>0
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
and tc:IsLocation(LOCATION_HAND) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c37507488.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
......
......@@ -26,24 +26,38 @@ function c56655675.initial_effect(c)
e3:SetOperation(c56655675.operation)
c:RegisterEffect(e3)
end
function c56655675.spfilter(c,setcode)
return c:IsFusionSetCard(setcode) and c:IsAbleToRemoveAsCost() and c:IsCanBeFusionMaterial()
function c56655675.spfilter1(c,mg)
local mg2=mg:Clone()
mg2:RemoveCard(c)
return c:IsFusionSetCard(0x40b5) and c:IsAbleToRemoveAsCost() and c:IsCanBeFusionMaterial()
and mg2:IsExists(c56655675.spfilter2,1,nil,mg2)
end
function c56655675.spfilter2(c,mg)
local mg2=mg:Clone()
mg2:RemoveCard(c)
return c:IsFusionSetCard(0x10b5) and c:IsAbleToRemoveAsCost() and c:IsCanBeFusionMaterial()
and mg2:IsExists(c56655675.spfilter3,1,nil)
end
function c56655675.spfilter3(c)
return c:IsFusionSetCard(0x20b5) and c:IsAbleToRemoveAsCost() and c:IsCanBeFusionMaterial()
end
function c56655675.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(Card.IsFusionSetCard,tp,LOCATION_MZONE,0,nil,0xb5)
return Duel.GetLocationCount(tp,LOCATION_MZONE)>-2
and Duel.IsExistingMatchingCard(c56655675.spfilter,tp,LOCATION_MZONE,0,1,nil,0x40b5)
and Duel.IsExistingMatchingCard(c56655675.spfilter,tp,LOCATION_MZONE,0,1,nil,0x10b5)
and Duel.IsExistingMatchingCard(c56655675.spfilter,tp,LOCATION_MZONE,0,1,nil,0x20b5)
and mg:IsExists(c56655675.spfilter1,1,nil,mg)
end
function c56655675.spop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(Card.IsFusionSetCard,tp,LOCATION_MZONE,0,nil,0xb5)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g1=Duel.SelectMatchingCard(tp,c56655675.spfilter,tp,LOCATION_MZONE,0,1,1,nil,0x40b5)
local g1=mg:FilterSelect(tp,c56655675.spfilter1,1,1,nil,mg)
mg:RemoveCard(g1:GetFirst())
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g2=Duel.SelectMatchingCard(tp,c56655675.spfilter,tp,LOCATION_MZONE,0,1,1,nil,0x10b5)
local g2=mg:FilterSelect(tp,c56655675.spfilter2,1,1,nil,mg)
mg:RemoveCard(g2:GetFirst())
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g3=Duel.SelectMatchingCard(tp,c56655675.spfilter,tp,LOCATION_MZONE,0,1,1,nil,0x20b5)
local g3=mg:FilterSelect(tp,c56655675.spfilter3,1,1,nil)
g1:Merge(g2)
g1:Merge(g3)
c:SetMaterial(g1)
......@@ -55,7 +69,7 @@ end
function c56655675.operation(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetCategory(CATEGORY_NEGATE+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_QUICK_O)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_CHAINING)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e1:SetRange(LOCATION_MZONE)
......
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