Commit 4874331d authored by TanakaKotoha's avatar TanakaKotoha

lua fix

parent b6abd3a5
......@@ -47,7 +47,7 @@ function c11200044.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoDeck(e:GetHandler(),nil,2,REASON_COST)
end
function c11200044.filter1(c,e,tp)
return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:IsRace(RACE_AQUA)
return c:IsFaceup() and c:IsRace(RACE_AQUA)
and Duel.IsExistingMatchingCard(c11200044.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,c,c:GetCode())
and Duel.GetLocationCountFromEx(tp,tp,c)>0
and aux.MustMaterialCheck(c,tp,EFFECT_MUST_BE_XMATERIAL)
......
......@@ -25,7 +25,7 @@ function c33400401.initial_effect(c)
c:RegisterEffect(e2)
end
function c33400401.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(Card.IsSetCard,1,nil,0x6343) or eg:IsExists(Card.IsSetCard,1,nil,0x5343)
return eg:IsExists(Card.IsSetCard,1,nil,0x6343) or eg:IsExists(Card.IsSetCard,1,nil,0x5343) and Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==1
end
function c33400401.spfilter1(c,e,tp)
return c:IsLevelBelow(4) and (c:IsSetCard(0xc342) or c:IsSetCard(0x5342)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -68,9 +68,9 @@ function c33400403.setop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1)
end
Duel.ConfirmCards(1-tp,g)
Duel.ConfirmCards(1-tp,tc)
end
local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
......
......@@ -25,7 +25,7 @@ function c33400474.cfilter(c,e,tp)
return c:IsSetCard(0x341) and c:IsAbleToRemoveAsCost() and Duel.IsExistingMatchingCard(c33400474.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp,nm)
end
function c33400474.filter(c,e,tp,nm)
return c:IsType(TYPE_XYZ) and c:IsRank(nm)
return c:IsSetCard(0x341) and c:IsType(TYPE_XYZ) and c:IsRank(nm)
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false)
end
function c33400474.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
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