Commit 17e6ca2c authored by argon.sun's avatar argon.sun

fix

parent a6f6e761
--ガード·ドッグ
function c57346400.initial_effect(c)
--flip
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(57346400,0))
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP)
e1:SetOperation(c57346400.operation)
c:RegisterEffect(e1)
end
function c57346400.operation(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(0,1)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
--キング·オブ·ビースト
function c62757079.initial_effect(c)
function c67757079.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(62757079,0))
e1:SetDescription(aux.Stringid(67757079,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND+LOCATION_GRAVE)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetCost(c62757079.spcost)
e1:SetTarget(c62757079.sptg)
e1:SetOperation(c62757079.spop)
e1:SetCost(c67757079.spcost)
e1:SetTarget(c67757079.sptg)
e1:SetOperation(c67757079.spop)
c:RegisterEffect(e1)
--only 1 can exists
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_CANNOT_SUMMON)
e2:SetCondition(c62757079.excon)
e2:SetCondition(c67757079.excon)
c:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
......@@ -24,23 +24,23 @@ function c62757079.initial_effect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e4:SetCode(EFFECT_SPSUMMON_CONDITION)
e4:SetValue(c62757079.splimit)
e4:SetValue(c67757079.splimit)
c:RegisterEffect(e4)
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_SINGLE)
e5:SetCode(EFFECT_SELF_DESTROY)
e5:SetCondition(c62757079.descon)
e5:SetCondition(c67757079.descon)
c:RegisterEffect(e5)
end
function c62757079.cfilter(c)
function c67757079.cfilter(c)
return c:IsFaceup() and c:GetCode()==94878265
end
function c62757079.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c62757079.cfilter,1,nil) end
local g=Duel.SelectReleaseGroup(tp,c62757079.cfilter,1,1,nil)
function c67757079.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c67757079.cfilter,1,nil) end
local g=Duel.SelectReleaseGroup(tp,c67757079.cfilter,1,1,nil)
Duel.Release(g,REASON_COST)
end
function c62757079.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
function c67757079.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
if e:GetHandler():IsLocation(LOCATION_HAND) then
......@@ -49,23 +49,23 @@ function c62757079.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c62757079.spop(e,tp,eg,ep,ev,re,r,rp)
function c67757079.spop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then
Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP)
end
end
function c62757079.exfilter(c,fid)
return c:IsFaceup() and c:GetCode()==62757079 and (fid==nil or c:GetFieldID()<fid)
function c67757079.exfilter(c,fid)
return c:IsFaceup() and c:GetCode()==67757079 and (fid==nil or c:GetFieldID()<fid)
end
function c62757079.excon(e)
function c67757079.excon(e)
local c=e:GetHandler()
return Duel.IsExistingMatchingCard(c62757079.exfilter,c:GetControler(),LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
return Duel.IsExistingMatchingCard(c67757079.exfilter,c:GetControler(),LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
end
function c62757079.splimit(e,se,sp,st,spos,tgp)
function c67757079.splimit(e,se,sp,st,spos,tgp)
if bit.band(spos,POS_FACEDOWN)~=0 then return true end
return not Duel.IsExistingMatchingCard(c62757079.exfilter,tgp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
return not Duel.IsExistingMatchingCard(c67757079.exfilter,tgp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
end
function c62757079.descon(e)
function c67757079.descon(e)
local c=e:GetHandler()
return Duel.IsExistingMatchingCard(c62757079.exfilter,c:GetControler(),LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil,c:GetFieldID())
return Duel.IsExistingMatchingCard(c67757079.exfilter,c:GetControler(),LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil,c:GetFieldID())
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