Commit a3735768 authored by yks's avatar yks

fix: fix the negcon cannot be true

parent 529efada
Pipeline #28350 failed with stages
in 23 seconds
...@@ -45,9 +45,10 @@ function s.rmlimit(e,c,rp,r,re) ...@@ -45,9 +45,10 @@ function s.rmlimit(e,c,rp,r,re)
end end
function s.negcon(e,tp,eg,ep,ev,re,r,rp) function s.negcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return not c:IsStatus(STATUS_BATTLE_DESTROYED) and ep~=tp local res = not c:IsStatus(STATUS_BATTLE_DESTROYED) and ep~=tp
and Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)==LOCATION_ONFIELD and Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION) & LOCATION_ONFIELD ~= 0
and Duel.IsChainNegatable(ev) and Duel.IsChainNegatable(ev)
return res
end end
function s.negtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true 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