--Supporto Inferioringranaggio - Blitzatione --Script by XGlitchy30 function c63553451.initial_effect(c) c:EnableCounterPermit(0x1554) --token local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(63553451,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetTarget(c63553451.tktg) e1:SetOperation(c63553451.tkop) c:RegisterEffect(e1) local e1x=e1:Clone() e1x:SetCode(EVENT_SPSUMMON_SUCCESS) c:RegisterEffect(e1x) local e1y=e1:Clone() e1y:SetCode(EVENT_FLIP_SUMMON_SUCCESS) c:RegisterEffect(e1y) --atkup local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e2:SetRange(LOCATION_MZONE) e2:SetValue(c63553451.atkval) c:RegisterEffect(e2) --pierce local prc=Effect.CreateEffect(c) prc:SetType(EFFECT_TYPE_SINGLE) prc:SetCode(EFFECT_PIERCE) c:RegisterEffect(prc) --place counter local e3=Effect.CreateEffect(c) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e3:SetCode(EVENT_BATTLE_DAMAGE) e3:SetRange(LOCATION_MZONE) e3:SetCondition(c63553451.ctcon) e3:SetOperation(c63553451.ctop) c:RegisterEffect(e3) end --filters function c63553451.atkfilter(c) return c:IsFaceup() and c:IsRace(RACE_MACHINE) end --token function c63553451.tktg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,59822133) and Duel.GetLocationCount(1-tp,LOCATION_MZONE,tp)>1 and Duel.IsPlayerCanSpecialSummonMonster(tp,63553462,0x4554,0x4011,0,0,3,RACE_MACHINE,ATTRIBUTE_DARK,POS_FACEUP_DEFENSE,1-tp) end Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,2,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,0,0) end function c63553451.tkop(e,tp,eg,ep,ev,re,r,rp) if Duel.IsPlayerAffectedByEffect(tp,59822133) then return end if Duel.GetLocationCount(1-tp,LOCATION_MZONE,tp)<2 then return end if not Duel.IsPlayerCanSpecialSummonMonster(tp,63553462,0x4554,0x4011,0,0,3,RACE_MACHINE,ATTRIBUTE_DARK,POS_FACEUP_DEFENSE,1-tp) then return end for i=1,2 do local token=Duel.CreateToken(tp,63553462) if Duel.SpecialSummonStep(token,0,tp,1-tp,false,false,POS_FACEUP_DEFENSE) then local e1=Effect.CreateEffect(e:GetHandler()) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_CANNOT_CHANGE_POSITION) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetValue(1) token:RegisterEffect(e1,true) end end Duel.SpecialSummonComplete() end --atkup function c63553451.atkval(e,c) return Duel.GetMatchingGroupCount(c63553451.atkfilter,c:GetControler(),LOCATION_MZONE,0,c)*500 end --place counter function c63553451.ctcon(e,tp,eg,ep,ev,re,r,rp) if ep==tp then return false end local rc=eg:GetFirst() return rc==e:GetHandler() end function c63553451.ctop(e,tp,eg,ep,ev,re,r,rp) e:GetHandler():AddCounter(0x1554,1) end