Commit d2955118 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c16369115.lua

parent 736ab4b8
Pipeline #30934 failed with stages
in 18 minutes and 14 seconds
...@@ -44,7 +44,7 @@ function c16369115.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -44,7 +44,7 @@ function c16369115.target(e,tp,eg,ep,ev,re,r,rp,chk)
local chkf=tp local chkf=tp
local mg1=Duel.GetFusionMaterial(tp) local mg1=Duel.GetFusionMaterial(tp)
if Duel.IsExistingMatchingCard(c16369115.cfilter,tp,LOCATION_MZONE,0,1,nil) then if Duel.IsExistingMatchingCard(c16369115.cfilter,tp,LOCATION_MZONE,0,1,nil) then
local mg2=Duel.GetMatchingGroup(c16369115.filter0,tp,LOCATION_DECK+LOCATION_EXTRA,0,nil) local mg2=Duel.GetMatchingGroup(c16369115.filter0,tp,LOCATION_DECK,0,nil)
if mg2:GetCount()>0 then if mg2:GetCount()>0 then
mg1:Merge(mg2) mg1:Merge(mg2)
aux.FCheckAdditional=c16369115.fcheck aux.FCheckAdditional=c16369115.fcheck
...@@ -72,7 +72,7 @@ function c16369115.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -72,7 +72,7 @@ function c16369115.activate(e,tp,eg,ep,ev,re,r,rp)
local mg1=Duel.GetFusionMaterial(tp):Filter(c16369115.filter1,nil,e) local mg1=Duel.GetFusionMaterial(tp):Filter(c16369115.filter1,nil,e)
local exmat=false local exmat=false
if Duel.IsExistingMatchingCard(c16369115.cfilter,tp,LOCATION_MZONE,0,1,nil) then if Duel.IsExistingMatchingCard(c16369115.cfilter,tp,LOCATION_MZONE,0,1,nil) then
local mg2=Duel.GetMatchingGroup(c16369115.filter0,tp,LOCATION_DECK+LOCATION_EXTRA,0,nil) local mg2=Duel.GetMatchingGroup(c16369115.filter0,tp,LOCATION_DECK,0,nil)
if mg2:GetCount()>0 then if mg2:GetCount()>0 then
mg1:Merge(mg2) mg1:Merge(mg2)
exmat=true exmat=true
...@@ -120,6 +120,18 @@ function c16369115.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -120,6 +120,18 @@ function c16369115.activate(e,tp,eg,ep,ev,re,r,rp)
end end
tc:CompleteProcedure() tc:CompleteProcedure()
end end
if not e:IsHasType(EFFECT_TYPE_ACTIVATE) then return end
local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetTargetRange(1,0)
e2:SetTarget(c16369115.splimit)
e2:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e2,tp)
end
function c16369115.splimit(e,c)
return not c:IsSetCard(0xcb1) and c:IsLocation(LOCATION_EXTRA)
end end
function c16369115.thfilter(c) function c16369115.thfilter(c)
return c:IsSetCard(0xcb1) and c:IsLevel(10) and c:IsAbleToHand() return c:IsSetCard(0xcb1) and c:IsLevel(10) and c:IsAbleToHand()
......
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