Commit 15c4fec3 authored by TanakaKotoha's avatar TanakaKotoha

lua fix

parent 6e84c2fc
...@@ -60,13 +60,15 @@ function c65050105.disop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,13 +60,15 @@ function c65050105.disop2(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.SelectMatchingCard(tp,c65050105.thfil1,tp,LOCATION_DECK,0,1,1,nil) local g1=Duel.SelectMatchingCard(tp,c65050105.thfil1,tp,LOCATION_DECK,0,1,1,nil)
local g11=Duel.SelectMatchingCard(tp,c65050105.thfil2,tp,LOCATION_DECK,0,1,1,nil) local g11=Duel.SelectMatchingCard(tp,c65050105.thfil2,tp,LOCATION_DECK,0,1,1,nil)
g1:Merge(g11) g1:Merge(g11)
Duel.SpecialSummon(g1,0,tp,tp,false,false,POS_FACEUP) Duel.SendtoHand(g1,tp,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g1)
end end
if Duel.IsExistingMatchingCard(c65050105.thfil1,1-tp,LOCATION_DECK,0,1,nil) and Duel.IsExistingMatchingCard(c65050105.thfil2,1-tp,LOCATION_DECK,0,1,nil) and Duel.SelectYesNo(1-tp,aux.Stringid(65050105,1)) then if Duel.IsExistingMatchingCard(c65050105.thfil1,1-tp,LOCATION_DECK,0,1,nil) and Duel.IsExistingMatchingCard(c65050105.thfil2,1-tp,LOCATION_DECK,0,1,nil) and Duel.SelectYesNo(1-tp,aux.Stringid(65050105,1)) then
local g2=Duel.SelectMatchingCard(1-tp,c65050105.thfil1,1-tp,LOCATION_DECK,0,1,1,nil) local g2=Duel.SelectMatchingCard(1-tp,c65050105.thfil1,1-tp,LOCATION_DECK,0,1,1,nil)
local g22=Duel.SelectMatchingCard(1-tp,c65050105.thfil2,1-tp,LOCATION_DECK,0,1,1,nil) local g22=Duel.SelectMatchingCard(1-tp,c65050105.thfil2,1-tp,LOCATION_DECK,0,1,1,nil)
g2:Merge(g22) g2:Merge(g22)
Duel.SpecialSummon(g2,0,1-tp,1-tp,false,false,POS_FACEUP) Duel.SendtoHand(g2,1-tp,REASON_EFFECT)
Duel.ConfirmCards(tp,g2)
end end
end end
end end
......
...@@ -64,7 +64,7 @@ function c65050112.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -64,7 +64,7 @@ function c65050112.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,1-tp,1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,1-tp,1)
end end
function c65050112.activate(e,tp,eg,ep,ev,re,r,rp) function c65050112.operation(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
......
...@@ -44,10 +44,10 @@ function c65050114.op1(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,10 +44,10 @@ function c65050114.op1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tg=Duel.SelectMatchingCard(tp,c65050114.filter,tp,LOCATION_GRAVE+LOCATION_HAND,0,1,1,nil,e,tp) local tg=Duel.SelectMatchingCard(tp,c65050114.filter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
if tg:GetCount()>0 then if tg:GetCount()>0 then
local tc=tg:GetFirst() local tc=tg:GetFirst()
local mg=Duel.GetMatchingGroup(c65050114.matfilter,tp,LOCATION_GRAVE+LOCATION_HAND,0,tc) local mg=Duel.GetMatchingGroup(c65050114.matfilter,tp,LOCATION_GRAVE,0,tc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local mat=mg:SelectWithSumEqual(tp,Card.GetRitualLevel,tc:GetLevel(),1,99,tc) local mat=mg:SelectWithSumEqual(tp,Card.GetRitualLevel,tc:GetLevel(),1,99,tc)
tc:SetMaterial(mat) tc:SetMaterial(mat)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
function c81009021.initial_effect(c) function c81009021.initial_effect(c)
--fusion material --fusion material
c:EnableReviveLimit() c:EnableReviveLimit()
aux.AddFusionProcFun2(c,aux.FilterBoolFunction(Card.IsFusionAttribute,ATTRIBUTE_FIRE),c81009021.ffilter,false) aux.AddFusionProcFun2(c,c81009021.affilter,c81009021.bffilter,false)
aux.AddContactFusionProcedure(c,Card.IsReleasable,LOCATION_MZONE,0,Duel.Release,REASON_COST+REASON_FUSION+REASON_MATERIAL) aux.AddContactFusionProcedure(c,Card.IsReleasable,LOCATION_MZONE,0,Duel.Release,REASON_COST+REASON_FUSION+REASON_MATERIAL)
--spsummon condition --spsummon condition
local e0=Effect.CreateEffect(c) local e0=Effect.CreateEffect(c)
...@@ -39,7 +39,10 @@ end ...@@ -39,7 +39,10 @@ end
function c81009021.splimit(e,se,sp,st) function c81009021.splimit(e,se,sp,st)
return not e:GetHandler():IsLocation(LOCATION_EXTRA) or aux.fuslimit(e,se,sp,st) return not e:GetHandler():IsLocation(LOCATION_EXTRA) or aux.fuslimit(e,se,sp,st)
end end
function c81009021.ffilter(c) function c81009021.affilter(c)
return c:IsFusionAttribute(ATTRIBUTE_FIRE) and bit.band(c:GetType(),0x81)==0x81
end
function c81009021.bffilter(c)
return c:IsFusionAttribute(ATTRIBUTE_FIRE) and not c:IsFusionType(TYPE_TOKEN) return c:IsFusionAttribute(ATTRIBUTE_FIRE) and not c:IsFusionType(TYPE_TOKEN)
end end
function c81009021.cfilter(c) function c81009021.cfilter(c)
......
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