Commit 2241ce4b authored by YiLong-jin's avatar YiLong-jin Committed by GitHub

Fix 蛇神降臨 (#2218)

* fix 蛇神降临

修复蛇神降临被事务回滚复制可以特招蛇神的问题(另外同时修改了毒蛇神ヴェノミナーガ)

* fix 毒蛇神ヴェノミナーガ

修复蛇神可以被复制了蛇神降临效果的事务回滚特招的问题,另外同时修改了蛇神降臨
parent 675a20db
...@@ -18,7 +18,7 @@ function c16067089.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -18,7 +18,7 @@ function c16067089.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c16067089.cfilter,1,nil,tp) return eg:IsExists(c16067089.cfilter,1,nil,tp)
end end
function c16067089.filter(c,e,tp) function c16067089.filter(c,e,tp)
return c:IsCode(8062132) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) return c:IsCode(8062132) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c16067089.target(e,tp,eg,ep,ev,re,r,rp,chk) function c16067089.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
...@@ -31,7 +31,7 @@ function c16067089.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,7 +31,7 @@ function c16067089.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c16067089.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c16067089.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,e,tp)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
tc:CompleteProcedure() tc:CompleteProcedure()
end end
end end
...@@ -7,6 +7,7 @@ function c8062132.initial_effect(c) ...@@ -7,6 +7,7 @@ function c8062132.initial_effect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION) e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(c8062132.splimit)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--atkup --atkup
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
...@@ -57,6 +58,10 @@ function c8062132.initial_effect(c) ...@@ -57,6 +58,10 @@ function c8062132.initial_effect(c)
e7:SetOperation(c8062132.winop) e7:SetOperation(c8062132.winop)
c:RegisterEffect(e7) c:RegisterEffect(e7)
end end
function c8062132.splimit(e,se,sp,st)
local sc=se:GetHandler()
return sc:IsCode(16067089) or sc==e:GetHandler()
end
function c8062132.efilter(e,te) function c8062132.efilter(e,te)
return te:GetOwner()~=e:GetOwner() return te:GetOwner()~=e:GetOwner()
end end
......
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