Commit 8a96d58a authored by Tachibana's avatar Tachibana

rar

parent a7491144
...@@ -100,7 +100,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -100,7 +100,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
end end
----- -----
function cm.discon(e,tp,eg,ep,ev,re,r,rp) function cm.discon(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) and Duel.IsChainNegatable(ev) and ep==1-tp return not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) and ep==1-tp
end end
function cm.drcfilter(c,tp) function cm.drcfilter(c,tp)
return c:IsType(TYPE_MONSTER) and c:IsReleasable() and c:IsRace(RACE_INSECT) return c:IsType(TYPE_MONSTER) and c:IsReleasable() and c:IsRace(RACE_INSECT)
...@@ -113,14 +113,14 @@ function cm.discost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -113,14 +113,14 @@ function cm.discost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DISABLE,eg,1,0,0)
if re:GetHandler():IsDestructable() and re:GetHandler():IsRelateToEffect(re) then if re:GetHandler():IsDestructable() and re:GetHandler():IsRelateToEffect(re) then
Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,1,0,0)
end end
end end
function cm.disop(e,tp,eg,ep,ev,re,r,rp) function cm.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() if not e:GetHandler():IsRelateToEffect(e) then return end
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then if Duel.NegateEffect(ev) and re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
\ No newline at end of file
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