Commit 6597c299 authored by Tachibana's avatar Tachibana

watele

parent 72b205df
Pipeline #6588 passed with stages
in 23 minutes and 46 seconds
...@@ -27,8 +27,7 @@ end ...@@ -27,8 +27,7 @@ end
function cm.discon(e,tp,eg,ep,ev,re,r,rp) function cm.discon(e,tp,eg,ep,ev,re,r,rp)
local tp=e:GetHandlerPlayer() local tp=e:GetHandlerPlayer()
local loc=re:GetActivateLocation() local loc=re:GetActivateLocation()
return Duel.GetFieldGroupCount(tp,LOCATION_EXTRA,0)==0 return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil)
and Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil)
and not Duel.IsExistingMatchingCard(cm.cfilter,tp,0,LOCATION_MZONE,1,nil) and loc==LOCATION_MZONE and re:IsActiveType(TYPE_MONSTER) and not Duel.IsExistingMatchingCard(cm.cfilter,tp,0,LOCATION_MZONE,1,nil) and loc==LOCATION_MZONE and re:IsActiveType(TYPE_MONSTER)
and bit.band(re:GetHandler():GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and bit.band(re:GetHandler():GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL
and Duel.IsChainNegatable(ev) and tp~=ep and Duel.IsChainNegatable(ev) and tp~=ep
......
...@@ -29,8 +29,7 @@ function cm.cfilter(c) ...@@ -29,8 +29,7 @@ function cm.cfilter(c)
end end
function cm.condition(e) function cm.condition(e)
local tp=e:GetHandlerPlayer() local tp=e:GetHandlerPlayer()
return Duel.GetFieldGroupCount(tp,LOCATION_EXTRA,0)==0 return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil)
and Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil)
and not Duel.IsExistingMatchingCard(cm.cfilter,tp,0,LOCATION_MZONE,1,nil) and not Duel.IsExistingMatchingCard(cm.cfilter,tp,0,LOCATION_MZONE,1,nil)
end end
function cm.locfilter(c) function cm.locfilter(c)
......
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