Commit 8a814502 authored by mercury233's avatar mercury233

fix

parent ed3be43f
......@@ -63,7 +63,7 @@ function c100257011.eqop(e,tp,eg,ep,ev,re,r,rp)
--equip limit
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_OWNER_RELATE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCode(EFFECT_EQUIP_LIMIT)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetLabelObject(tc)
......
......@@ -136,7 +136,8 @@ end
function c100257056.regcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local zone=(c:GetLinkedZone(0) & 0x7f) | ((c:GetLinkedZone(1) & 0x7f)<<0x10)
return bit.extract(zone,c100257056[2])~=0
local seq=c100257056[2]
return seq and bit.extract(zone,seq)~=0
end
function c100257056.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetChainInfo(ev,CHAININFO_CHAIN_ID)==c100257056[0]
......
......@@ -56,7 +56,7 @@ function c100259033.ovfilter(c)
return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:IsSetCard(0x23b)
end
function c100259033.spfilter(c,e,tp,mc)
return (c:IsSetCard(0x23b) or c:IsSetCard(0x10db)) and mc:IsCanBeXyzMaterial(c)
return (c:IsSetCard(0x23b) or c:IsSetCard(0x10db)) and mc:IsCanBeXyzMaterial(c) and c:IsType(TYPE_XYZ)
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and not c:IsCode(100259033)
end
function c100259033.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -15,14 +15,11 @@ function c101012056.initial_effect(c)
e1:SetOperation(c101012056.activate)
c:RegisterEffect(e1)
end
function c101012056.filter(c)
return c:IsFaceup() and c:IsCode(59054773)
end
function c101012056.cfilter(c)
return c:IsCode(59054773) and not c:IsPublic() and c:IsAbleToDeck()
end
function c101012056.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c101012056.filter,tp,LOCATION_FZONE,0,1,nil)
return Duel.IsEnvironment(59054773,tp,LOCATION_FZONE)
end
function c101012056.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1)
......
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