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 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