Commit d42514dd authored by TanakaKotoha's avatar TanakaKotoha

lua fix

parent 769befc4
--造神计划7 赤游鱼 --造神计划7 赤游鱼
function c33330107.initial_effect(c) function c33330107.initial_effect(c)
--link summon --link summon
aux.AddLinkProcedure(c,nil,2,2,c33330107.lcheck) aux.AddLinkProcedure(c,nil,2,99,c33330107.lcheck)
c:EnableReviveLimit() c:EnableReviveLimit()
--spsummon --spsummon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -37,6 +37,7 @@ function c33330107.lcheck(g,lc) ...@@ -37,6 +37,7 @@ function c33330107.lcheck(g,lc)
return g:IsExists(Card.IsLinkRace,1,nil,RACE_AQUA) return g:IsExists(Card.IsLinkRace,1,nil,RACE_AQUA)
end end
function c33330107.disable(e,c) function c33330107.disable(e,c)
local tp=e:GetHandlerPlayer()
local lg1=Duel.GetLinkedGroup(tp,1,1) local lg1=Duel.GetLinkedGroup(tp,1,1)
local lg2=Duel.GetLinkedGroup(1-tp,1,1) local lg2=Duel.GetLinkedGroup(1-tp,1,1)
lg1:Merge(lg2) lg1:Merge(lg2)
...@@ -66,7 +67,7 @@ function c33330107.tg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -66,7 +67,7 @@ function c33330107.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsCanBeSpecialSummoned,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil,e,0,tp,false,false) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsCanBeSpecialSummoned,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil,e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_GRAVE)
end end
function c33330107.cost(e,tp,eg,ep,ev,re,r,rp) function c33330107.op(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetMZoneCount(tp)<=0 then return end if Duel.GetMZoneCount(tp)<=0 then return end
local g=Duel.SelectMatchingCard(tp,Card.IsCanBeSpecialSummoned,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil,e,0,tp,false,false) local g=Duel.SelectMatchingCard(tp,Card.IsCanBeSpecialSummoned,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil,e,0,tp,false,false)
if g then if g then
......
...@@ -16,7 +16,7 @@ function c33400114.tfilter(c,e,tp) ...@@ -16,7 +16,7 @@ function c33400114.tfilter(c,e,tp)
return c:IsCode(33400011) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) return c:IsCode(33400011) and c:IsCanBeSpecialSummoned(e,0,tp,true,false)
end end
function c33400114.filter(c,e,tp) function c33400114.filter(c,e,tp)
return c:IsSetCard(0x3341) return c:IsSetCard(0x3341)
and Duel.IsExistingMatchingCard(c33400114.tfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp) and Duel.IsExistingMatchingCard(c33400114.tfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp)
and Duel.GetLocationCountFromEx(tp,tp,c)>0 and Duel.GetLocationCountFromEx(tp,tp,c)>0
end end
...@@ -69,8 +69,8 @@ function c33400114.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,8 +69,8 @@ function c33400114.tgop(e,tp,eg,ep,ev,re,r,rp)
local dg=Duel.GetMatchingGroup(c33400114.ss,tp,LOCATION_GRAVE,0,nil,e,tp) local dg=Duel.GetMatchingGroup(c33400114.ss,tp,LOCATION_GRAVE,0,nil,e,tp)
if dg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(33400114,0)) then if dg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(33400114,0)) then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c33400114.ss,tp,LOCATION_GRAVE,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c33400114.ss,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
local tc=g:GetFirst() local tc=g:GetFirst()
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end end
......
...@@ -16,7 +16,7 @@ function c65010092.initial_effect(c) ...@@ -16,7 +16,7 @@ function c65010092.initial_effect(c)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1) e1:SetCountLimit(1,65010092)
e1:SetCost(c65010092.cost) e1:SetCost(c65010092.cost)
e1:SetTarget(c65010092.tg) e1:SetTarget(c65010092.tg)
e1:SetOperation(c65010092.op) e1:SetOperation(c65010092.op)
......
...@@ -38,7 +38,7 @@ function c65050125.tg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -38,7 +38,7 @@ function c65050125.tg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DRAW,0,0,tp,2) Duel.SetOperationInfo(0,CATEGORY_DRAW,0,0,tp,2)
end end
function c65050125.op(e,tp,eg,ep,ev,re,r,rp) function c65050125.op(e,tp,eg,ep,ev,re,r,rp)
if Duel.DiscardHand(tp,Card.IsAbleToGrave,1,1,REASON_EFFECT,nil)~=0 then if Duel.DiscardHand(tp,c65050125.tgfilter,1,1,REASON_EFFECT,nil)~=0 then
Duel.Draw(tp,2,REASON_EFFECT) Duel.Draw(tp,2,REASON_EFFECT)
end end
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