Commit d58e2f71 authored by TanakaKotoha's avatar TanakaKotoha

lua fix

parent 336e0a9b
...@@ -50,7 +50,7 @@ function c12008030.spfilter1(c,e,tp) ...@@ -50,7 +50,7 @@ function c12008030.spfilter1(c,e,tp)
and aux.MustMaterialCheck(c,tp,EFFECT_MUST_BE_XMATERIAL) and aux.MustMaterialCheck(c,tp,EFFECT_MUST_BE_XMATERIAL)
end end
function c12008030.spfilter2(c,e,tp,mc,level) function c12008030.spfilter2(c,e,tp,mc,level)
return c:IsType(TYPE_XYZ) and c:GetLevel()==level and mc:IsCanBeXyzMaterial(c) return c:IsType(TYPE_XYZ) and c:GetRank==level and mc:IsCanBeXyzMaterial(c)
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0 and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0
end end
function c12008030.sptg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c12008030.sptg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -5,7 +5,7 @@ function c12010037.initial_effect(c) ...@@ -5,7 +5,7 @@ function c12010037.initial_effect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,12008011+EFFECT_COUNT_CODE_OATH) e1:SetCountLimit(1,12010037+EFFECT_COUNT_CODE_OATH)
e1:SetOperation(c12010037.activate) e1:SetOperation(c12010037.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--special summon --special summon
......
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