Commit 70ae7d6d authored by nanahira's avatar nanahira

prescript

parent 2b3ea184
......@@ -25,7 +25,7 @@ function c100407008.initial_effect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e3:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e3:SetRange(LOCATION_SZONE)
e3:SetRange(LOCATION_MZONE)
e3:SetTargetRange(LOCATION_MZONE,0)
e3:SetCondition(c100407008.indcon)
e3:SetTarget(aux.TargetBoolFunction(Card.IsRace,RACE_INSECT))
......
......@@ -34,15 +34,9 @@ end
function c101003048.matfilter(c,lc,tp)
return c:IsFaceup() and c:IsCanBeLinkMaterial(lc)
end
function c101003048.lkcheck(c,sg)
return sg:FilterCount(c101003048.lkcheck2,c,c)+1==sg:GetCount()
end
function c101003048.lkcheck2(c,mc)
return not c:IsCode(mc:IsCode())
end
function c101003048.lkgoal(c,tp,lc,ct,sg)
return sg:GetCount()>1 and sg:CheckWithSumEqual(aux.GetLinkCount,lc:GetLink(),ct,ct)
and Duel.GetLocationCountFromEx(tp,tp,sg,lc)>0 and sg:IsExists(c101003048.lkcheck,1,nil,sg)
and Duel.GetLocationCountFromEx(tp,tp,sg,lc)>0 and sg:GetClassCount(Card.GetCode)==sg:GetCount()
end
function c101003048.lkselect(c,tp,lc,ct,mg,sg)
sg:AddCard(c)
......
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