Commit 236201e9 authored by TanakaKotoha's avatar TanakaKotoha

new and fix

parent 9f1a4299
......@@ -33,7 +33,6 @@ function c47579900.initial_effect(c)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetCondition(c47579900.xyzcon)
e3:SetTarget(c47579900.rmtg)
e3:SetOperation(c47579900.rmop)
c:RegisterEffect(e3)
--repeat attack
......@@ -71,12 +70,11 @@ end
function c47579900.xyzcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end
function c47579900.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)>0 end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,0,LOCATION_MZONE)
function c47579900.rmfilter(c)
return c:IsType(TYPE_MONSTER)
end
function c47579900.rmop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsType,tp,LOCATION_MZONE,LOCATION_MZONE,nil,TYPE_MONSTER,e:GetHandler())
local g=Duel.GetMatchingGroup(c47579900.rmfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,aux.ExceptThisCard(e))
local tg=g:GetMaxGroup(Card.GetAttack)
if tg:GetCount()>0 then
Duel.Remove(tg,POS_FACEDOWN,REASON_RULE)
......
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