--Hybrid Steel Gauntlet Iron function c11000228.initial_effect(c) --fustion material aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0x1FA),2,true) c:EnableReviveLimit() --destroy local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(11000228,0)) e1:SetCategory(CATEGORY_DESTROY+CATEGORY_DAMAGE) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(c11000228.eqcon) e1:SetTarget(c11000228.sgtg) e1:SetOperation(c11000228.sgop) c:RegisterEffect(e1) --multiatk local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(11000228,1)) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetRange(LOCATION_MZONE) e3:SetCondition(c11000228.atkcon) e3:SetCost(c11000228.atkcost) e3:SetTarget(c11000228.atktg) e3:SetOperation(c11000228.atkop) c:RegisterEffect(e3) end function c11000228.eqcon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():GetSummonType()==SUMMON_TYPE_FUSION end function c11000228.sgtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end local g=Duel.GetMatchingGroup(Card.IsDestructable,tp,LOCATION_ONFIELD,0,e:GetHandler()) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0) end function c11000228.sgfilter(c,p) return c:IsLocation(LOCATION_GRAVE) or c:IsLocation(LOCATION_EXTRA) or c:IsLocation(LOCATION_REMOVED) or c:IsLocation(LOCATION_DECK) and c:IsControler(tp) end function c11000228.sgop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsDestructable,tp,LOCATION_ONFIELD,0,e:GetHandler()) Duel.Destroy(g,REASON_EFFECT) local og=Duel.GetOperatedGroup() local ct=og:FilterCount(c11000228.sgfilter,nil,tp) if ct>0 then Duel.BreakEffect() Duel.Damage(1-tp,ct*300,REASON_EFFECT) end end function c11000228.atkcon(e,tp,eg,ep,ev,re,r,rp) return Duel.IsAbleToEnterBP() end function c11000228.cfilter(c) return c:IsSetCard(0x1FA) and c:IsType(TYPE_MONSTER) and c:IsDiscardable() end function c11000228.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(c11000228.cfilter,tp,LOCATION_HAND,0,1,nil) end Duel.DiscardHand(tp,c11000228.cfilter,1,1,REASON_COST+REASON_DISCARD) end function c11000228.atktg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():GetEffectCount(EFFECT_EXTRA_ATTACK)==0 end end function c11000228.atkop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if c:IsRelateToEffect(e) then local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetCode(EFFECT_EXTRA_ATTACK) e1:SetValue(1) e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end end