Commit 4b8a2ce1 authored by Nemo Ma's avatar Nemo Ma

fix

parent f9a51a38
......@@ -83,6 +83,7 @@ function c33200651.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end
function c33200651.desop(e,tp,eg,ep,ev,re,r,rp)
local datk=e:GetHandler():GetAttack()
if e:GetHandler():IsOnField() and e:GetHandler():IsFaceup() then
local g=Duel.GetMatchingGroup(c33200651.desfilter,tp,0,LOCATION_MZONE,nil,datk)
Duel.Destroy(g,REASON_EFFECT)
......
......@@ -42,7 +42,7 @@ function c33200660.cfilter(c,seq2)
end
function c33200660.discon(e,tp,eg,ep,ev,re,r,rp)
local loc,seq=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION,CHAININFO_TRIGGERING_SEQUENCE)
return rp==1-tp and (re:IsActiveType(TYPE_TRAP) or re:IsActiveType(TYPE_SPELL)) and loc==LOCATION_SZONE
return rp==1-tp and (re:IsActiveType(TYPE_TRAP) or re:IsActiveType(TYPE_SPELL)) and loc&LOCATION_SZONE==LOCATION_SZONE and seq<=4
and Duel.IsExistingMatchingCard(c33200660.cfilter,tp,LOCATION_MZONE,0,1,nil,seq)
end
function c33200660.disop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -12,6 +12,9 @@ function c60000118.initial_effect(c)
e1:SetTarget(c60000118.sptg)
e1:SetOperation(c60000118.spop)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e2)
--negate
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(60000118,1))
......
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