Commit fa3859a7 authored by wind2009's avatar wind2009

Fix 捕食原生

parent 4fb5d1f3
Pipeline #42070 failed with stages
in 1 minute and 6 seconds
...@@ -91,7 +91,7 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -91,7 +91,7 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToChain() and c:IsFaceup() and qc then if c:IsRelateToChain() and c:IsFaceup() and qc then
Duel.DisableShuffleCheck() Duel.DisableShuffleCheck()
if s.eqfilter(qc,c,tp) then if s.eqfilter(qc,c,tp) then
if Duel.Equip(tp,qc,c) then if Duel.Equip(tp,qc,c) then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
......
...@@ -84,7 +84,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,7 +84,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
if ft<=0 then return end if ft<=0 then return end
local sg=Duel.GetTargetsRelateToChain() local sg=Duel.GetTargetsRelateToChain()
if sg:GetCount()<2 or Duel.IsPlayerAffectedByEffect(tp,59822133) if sg:GetCount()<2 or Duel.IsPlayerAffectedByEffect(tp,59822133)
or sg:GetCount()>ft then return end or sg:GetCount()>ft then return end
local tc=sg:GetFirst() local tc=sg:GetFirst()
while tc do while tc do
Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP)
......
...@@ -53,6 +53,19 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,6 +53,19 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
if e:IsHasType(EFFECT_TYPE_ACTIVATE) then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(1,0)
e1:SetTarget(s.splimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
end
function s.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsRace(RACE_PLANT+RACE_DRAGON)
end end
function s.spfilter2(c,tp,se) function s.spfilter2(c,tp,se)
return c:IsControler(tp) and (se==nil or c:GetReasonEffect()~=se) return c:IsControler(tp) and (se==nil or c:GetReasonEffect()~=se)
......
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