Commit b40888b2 authored by wyykak's avatar wyykak

fix 19500019

Signed-off-by: wyykak's avatarwyykak <wyy_1414@126.com>
parent dac2b926
Pipeline #25918 passed with stage
in 9 seconds
...@@ -49,9 +49,9 @@ function c19500019.discon(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,9 +49,9 @@ function c19500019.discon(e,tp,eg,ep,ev,re,r,rp)
if re:IsHasCategory(CATEGORY_NEGATE) if re:IsHasCategory(CATEGORY_NEGATE)
and Duel.GetChainInfo(ev-1,CHAININFO_TRIGGERING_EFFECT):IsHasType(EFFECT_TYPE_ACTIVATE) then return false end and Duel.GetChainInfo(ev-1,CHAININFO_TRIGGERING_EFFECT):IsHasType(EFFECT_TYPE_ACTIVATE) then return false end
local ex1,tg,tc=Duel.GetOperationInfo(ev,CATEGORY_DESTROY) local ex1,tg,tc=Duel.GetOperationInfo(ev,CATEGORY_DESTROY)
local res1=ex1 and tg~=nil and tc+tg:FilterCount(c19500019.tfilter,1,nil,tp)-tg:GetCount()>0 local res1=ex1 and tg~=nil and tc+tg:FilterCount(c19500019.tfilter,nil,tp)-tg:GetCount()>0
local ex2,tg,tc=Duel.GetOperationInfo(ev,CATEGORY_REMOVE) local ex2,tg,tc=Duel.GetOperationInfo(ev,CATEGORY_REMOVE)
local res2=ex2 and tg~=nil and tc+tg:FilterCount(c19500019.tfilter,1,nil,tp)-tg:GetCount()>0 local res2=ex2 and tg~=nil and tc+tg:FilterCount(c19500019.tfilter,nil,tp)-tg:GetCount()>0
return res1 or res2 return res1 or res2
end end
function c19500019.discost(e,tp,eg,ep,ev,re,r,rp,chk) function c19500019.discost(e,tp,eg,ep,ev,re,r,rp,chk)
......
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