Commit 30eedd40 authored by nekrozar's avatar nekrozar

fix

parent 8c61a859
--ラーの翼神竜-球体型 --ラーの翼神竜-球体型
function c10000050.initial_effect(c) function c10000080.initial_effect(c)
--cannot special summon --cannot special summon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
...@@ -11,8 +11,8 @@ function c10000050.initial_effect(c) ...@@ -11,8 +11,8 @@ function c10000050.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_LIMIT_SUMMON_PROC) e2:SetCode(EFFECT_LIMIT_SUMMON_PROC)
e2:SetCondition(c10000050.ttcon) e2:SetCondition(c10000080.ttcon)
e2:SetOperation(c10000050.ttop) e2:SetOperation(c10000080.ttop)
e2:SetValue(SUMMON_TYPE_ADVANCE) e2:SetValue(SUMMON_TYPE_ADVANCE)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
...@@ -23,7 +23,7 @@ function c10000050.initial_effect(c) ...@@ -23,7 +23,7 @@ function c10000050.initial_effect(c)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e4:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e4:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e4:SetCode(EVENT_SUMMON_SUCCESS) e4:SetCode(EVENT_SUMMON_SUCCESS)
e4:SetOperation(c10000050.retreg) e4:SetOperation(c10000080.retreg)
c:RegisterEffect(e4) c:RegisterEffect(e4)
--cannot attack --cannot attack
local e5=Effect.CreateEffect(c) local e5=Effect.CreateEffect(c)
...@@ -44,30 +44,30 @@ function c10000050.initial_effect(c) ...@@ -44,30 +44,30 @@ function c10000050.initial_effect(c)
c:RegisterEffect(e7) c:RegisterEffect(e7)
--special summon --special summon
local e8=Effect.CreateEffect(c) local e8=Effect.CreateEffect(c)
e8:SetDescription(aux.Stringid(10000050,2)) e8:SetDescription(aux.Stringid(10000080,2))
e8:SetCategory(CATEGORY_SPECIAL_SUMMON) e8:SetCategory(CATEGORY_SPECIAL_SUMMON)
e8:SetType(EFFECT_TYPE_IGNITION) e8:SetType(EFFECT_TYPE_IGNITION)
e8:SetRange(LOCATION_MZONE) e8:SetRange(LOCATION_MZONE)
e8:SetCost(c10000050.spcost) e8:SetCost(c10000080.spcost)
e8:SetTarget(c10000050.sptg) e8:SetTarget(c10000080.sptg)
e8:SetOperation(c10000050.spop) e8:SetOperation(c10000080.spop)
c:RegisterEffect(e8) c:RegisterEffect(e8)
end end
function c10000050.ttcon(e,c) function c10000080.ttcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local g=Duel.GetFieldGroup(tp,0,LOCATION_MZONE) local g=Duel.GetFieldGroup(tp,0,LOCATION_MZONE)
return (Duel.GetLocationCount(tp,LOCATION_MZONE)>-3 and Duel.GetTributeCount(c)>=3) return (Duel.GetLocationCount(tp,LOCATION_MZONE)>-3 and Duel.GetTributeCount(c)>=3)
or (Duel.GetLocationCount(1-tp,LOCATION_MZONE)>-3 and Duel.IsExistingMatchingCard(Card.IsReleasable,c:GetControler(),0,LOCATION_MZONE,3,nil)) or (Duel.GetLocationCount(1-tp,LOCATION_MZONE)>-3 and Duel.IsExistingMatchingCard(Card.IsReleasable,c:GetControler(),0,LOCATION_MZONE,3,nil))
end end
function c10000050.ttop(e,tp,eg,ep,ev,re,r,rp,c) function c10000080.ttop(e,tp,eg,ep,ev,re,r,rp,c)
local b1=Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-3 and Duel.GetTributeCount(c)>=3 local b1=Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-3 and Duel.GetTributeCount(c)>=3
local g=Duel.GetFieldGroup(c:GetControler(),0,LOCATION_MZONE) local g=Duel.GetFieldGroup(c:GetControler(),0,LOCATION_MZONE)
local b2=Duel.GetLocationCount(1-c:GetControler(),LOCATION_MZONE)>-3 and Duel.IsExistingMatchingCard(Card.IsReleasable,c:GetControler(),0,LOCATION_MZONE,3,nil) local b2=Duel.GetLocationCount(1-c:GetControler(),LOCATION_MZONE)>-3 and Duel.IsExistingMatchingCard(Card.IsReleasable,c:GetControler(),0,LOCATION_MZONE,3,nil)
local op=0 local op=0
if b1 and b2 then op=Duel.SelectOption(tp,aux.Stringid(10000050,0),aux.Stringid(10000050,1)) if b1 and b2 then op=Duel.SelectOption(tp,aux.Stringid(10000080,0),aux.Stringid(10000080,1))
elseif b1 then op=Duel.SelectOption(tp,aux.Stringid(10000050,0)) elseif b1 then op=Duel.SelectOption(tp,aux.Stringid(10000080,0))
else op=Duel.SelectOption(tp,aux.Stringid(10000050,1))+1 end else op=Duel.SelectOption(tp,aux.Stringid(10000080,1))+1 end
if op==0 then if op==0 then
local mg=Duel.SelectTribute(tp,c,3,3) local mg=Duel.SelectTribute(tp,c,3,3)
c:SetMaterial(mg) c:SetMaterial(mg)
...@@ -80,11 +80,11 @@ function c10000050.ttop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -80,11 +80,11 @@ function c10000050.ttop(e,tp,eg,ep,ev,re,r,rp,c)
e:SetTargetRange(POS_FACEUP_ATTACK,1) e:SetTargetRange(POS_FACEUP_ATTACK,1)
end end
end end
function c10000050.setcon(e,c) function c10000080.setcon(e,c)
if not c then return true end if not c then return true end
return false return false
end end
function c10000050.retreg(e,tp,eg,ep,ev,re,r,rp) function c10000080.retreg(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE+PHASE_END)
...@@ -92,36 +92,36 @@ function c10000050.retreg(e,tp,eg,ep,ev,re,r,rp) ...@@ -92,36 +92,36 @@ function c10000050.retreg(e,tp,eg,ep,ev,re,r,rp)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_IGNORE_IMMUNE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetLabel(Duel.GetTurnCount()) e1:SetLabel(Duel.GetTurnCount())
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCondition(c10000050.retcon) e1:SetCondition(c10000080.retcon)
e1:SetOperation(c10000050.retop) e1:SetOperation(c10000080.retop)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+RESET_END,2) e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+RESET_END,2)
e:GetHandler():RegisterEffect(e1) e:GetHandler():RegisterEffect(e1)
end end
function c10000050.retcon(e,tp,eg,ep,ev,re,r,rp) function c10000080.retcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnCount()~=e:GetLabel() return Duel.GetTurnCount()~=e:GetLabel()
end end
function c10000050.retop(e,tp,eg,ep,ev,re,r,rp) function c10000080.retop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:GetControler()~=c:GetOwner() then if c:GetControler()~=c:GetOwner() then
Duel.GetControl(c,c:GetOwner()) Duel.GetControl(c,c:GetOwner())
end end
end end
function c10000050.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c10000080.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReleasable() end if chk==0 then return e:GetHandler():IsReleasable() end
Duel.Release(e:GetHandler(),REASON_COST) Duel.Release(e:GetHandler(),REASON_COST)
end end
function c10000050.filter(c,e,tp) function c10000080.filter(c,e,tp)
return c:IsCode(10000010) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) return c:IsCode(10000010) and c:IsCanBeSpecialSummoned(e,0,tp,true,false)
end end
function c10000050.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c10000080.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
and Duel.IsExistingMatchingCard(c10000050.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c10000080.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,0,tp,LOCATION_HAND+LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,0,tp,LOCATION_HAND+LOCATION_DECK)
end end
function c10000050.spop(e,tp,eg,ep,ev,re,r,rp) function c10000080.spop(e,tp,eg,ep,ev,re,r,rp)
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 g=Duel.SelectMatchingCard(tp,c10000050.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c10000080.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc and Duel.SpecialSummonStep(tc,0,tp,tp,true,false,POS_FACEUP) then if tc and Duel.SpecialSummonStep(tc,0,tp,tp,true,false,POS_FACEUP) then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
......
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