Commit fa3859a7 authored by wind2009's avatar wind2009

Fix 捕食原生

parent 4fb5d1f3
Pipeline #42070 failed with stages
in 1 minute and 6 seconds
...@@ -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