Commit bf44832a authored by POLYMER's avatar POLYMER

fix

parent 73d698f2
No preview for this file type
...@@ -72,7 +72,7 @@ function s.spcon(e,c,tp) ...@@ -72,7 +72,7 @@ function s.spcon(e,c,tp)
end end
function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 if chk==0 then return Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
and Duel.IsPlayerCanSpecialSummon(tp,0,POS_FACEUP,tp,c) end and Duel.IsPlayerCanSpecialSummon(tp,0,POS_FACEUP,tp,c) end
end end
function s.spop(e,tp,eg,ep,ev,re,r,rp) function s.spop(e,tp,eg,ep,ev,re,r,rp)
...@@ -107,6 +107,7 @@ function s.costop(e,tp,eg,ep,ev,re,r,rp) ...@@ -107,6 +107,7 @@ function s.costop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local te=e:GetLabelObject() local te=e:GetLabelObject()
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
c:CreateEffectRelation(te)
end end
function s.checkintab(tab,v) function s.checkintab(tab,v)
for _,ve in ipairs(tab) do for _,ve in ipairs(tab) do
...@@ -144,7 +145,8 @@ function s.thfilter(c) ...@@ -144,7 +145,8 @@ function s.thfilter(c)
return c:IsSetCard(0xca70) and c:IsAbleToHand() and c:IsFaceupEx() return c:IsSetCard(0xca70) and c:IsAbleToHand() and c:IsFaceupEx()
end end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK+LOCATION_REMOVED,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK+LOCATION_REMOVED,0,1,nil)
and e:GetHandler():IsLocation(LOCATION_MZONE) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK+LOCATION_REMOVED) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK+LOCATION_REMOVED)
end end
function s.thop(e,tp,eg,ep,ev,re,r,rp) function s.thop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -32,7 +32,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,7 +32,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_PHASE+PHASE_END) e2:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
local sg=Duel.GetMatchingGroup(s.thfilter,tp,0,LOCATION_ONFIELD,nil) local sg=Duel.GetMatchingGroup(s.thfilter,tp,0,LOCATION_ONFIELD,nil)
if cl==6 and Duel.IsExistingMatchingCard(s.efilter,tp,LOCATION_ONFIELD,0,1,nil) if cl==6 and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_ONFIELD,0,1,nil)
and #sg>0 and Duel.SelectYesNo(tp,aux.Stringid(id,0)) then and #sg>0 and Duel.SelectYesNo(tp,aux.Stringid(id,0)) then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_MUSIC,0,aux.Stringid(id,2)) Duel.Hint(HINT_MUSIC,0,aux.Stringid(id,2))
...@@ -44,4 +44,7 @@ function s.thfilter(c) ...@@ -44,4 +44,7 @@ function s.thfilter(c)
end end
function s.efilter(e,c) function s.efilter(e,c)
return c:IsFaceup() and c:IsCode(12823290) return c:IsFaceup() and c:IsCode(12823290)
end
function s.filter(c)
return c:IsFaceup() and c:IsCode(12823290)
end end
\ No newline at end of file
...@@ -93,9 +93,9 @@ end ...@@ -93,9 +93,9 @@ end
function c21050102.tgcost(e,tp,eg,ep,ev,re,r,rp,chk) function c21050102.tgcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,aux.TRUE,2,nil) end if chk==0 then return Duel.CheckReleaseGroup(tp,aux.TRUE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectReleaseGroup(tp,aux.TRUE,2,2,nil) local g=Duel.SelectReleaseGroup(tp,aux.TRUE,1,1,nil)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c21050102.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function c21050102.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -86,6 +86,7 @@ function c65899925.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -86,6 +86,7 @@ function c65899925.spop(e,tp,eg,ep,ev,re,r,rp)
local sg=Duel.SelectMatchingCard(tp,Card.IsAbleToHand,tp,LOCATION_REMOVED,0,1,1,nil) local sg=Duel.SelectMatchingCard(tp,Card.IsAbleToHand,tp,LOCATION_REMOVED,0,1,1,nil)
if sg:GetCount()>0 then if sg:GetCount()>0 then
if Duel.SendtoHand(sg,nil,REASON_EFFECT)>0 and Duel.IsExistingMatchingCard(Card.IsAbleToGrave,tp,LOCATION_HAND,0,1,nil) then if Duel.SendtoHand(sg,nil,REASON_EFFECT)>0 and Duel.IsExistingMatchingCard(Card.IsAbleToGrave,tp,LOCATION_HAND,0,1,nil) then
Duel.ConfirmCards(1-tp,sg)
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local tg=Duel.SelectMatchingCard(tp,Card.IsAbleToGrave,tp,LOCATION_HAND,0,1,1,nil) local tg=Duel.SelectMatchingCard(tp,Card.IsAbleToGrave,tp,LOCATION_HAND,0,1,1,nil)
......
...@@ -4,17 +4,16 @@ local table1={89943723, ...@@ -4,17 +4,16 @@ local table1={89943723,
9411399, 9411399,
9411399, 9411399,
9411399, 9411399,
13650422,
13650422,
40044918, 40044918,
40044918, 40044918,
30583090,
115072031, 115072031,
115072031, 115072031,
115072031, 115072031,
59392529,
50720316, 50720316,
50720316, 50720316,
27780618, 27780618,
27780618,
16605586, 16605586,
14558127, 14558127,
14558127, 14558127,
...@@ -23,8 +22,6 @@ local table1={89943723, ...@@ -23,8 +22,6 @@ local table1={89943723,
23434538, 23434538,
97268402, 97268402,
97268402, 97268402,
3519195,
3519195,
8949584, 8949584,
8949584, 8949584,
8949584, 8949584,
...@@ -57,7 +54,8 @@ local table1={89943723, ...@@ -57,7 +54,8 @@ local table1={89943723,
19324993, 19324993,
29301450, 29301450,
58004362, 58004362,
58004362} 58004362,
}
--雷火进化 --雷火进化
local table2={80186010, local table2={80186010,
80186010, 80186010,
......
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