Commit 27bbac9f authored by TanakaKotoha's avatar TanakaKotoha

lbw

parent 77e207a8
......@@ -10,6 +10,9 @@ function c30553012.initial_effect(c)
e1:SetTarget(c30553012.lktg)
e1:SetOperation(c30553012.lkop)
c:RegisterEffect(e1)
e3=e1:Clone()
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e3)
--spsummoneffect
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
......@@ -28,7 +31,7 @@ function c30553012.sccon(e,tp,eg,ep,ev,re,r,rp)
return ph==PHASE_MAIN1 or (ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE) or ph==PHASE_MAIN2
end
function c30553012.mfilter(c)
return c:IsAbleToGrave() and (c:IsSetCard(0x303) or (c:IsRace(RACE_MACHINE) and c:IsType(TYPE_MONSTER))
return c:IsAbleToGrave() and (c:IsSetCard(0x303) or (c:IsRace(RACE_MACHINE) and c:IsType(TYPE_MONSTER)))
end
function c30553012.sctg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsExistingMatchingCard(c30553012.mfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,e:GetHandler()) end
......@@ -69,7 +72,7 @@ function c30553012.lkop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCondition(c30553012.actcon)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2)
tc:RegisterFlagEffect(0, RESET_EVENT + RESETS_STANDARD, EFFECT_FLAG_CLIENT_HINT, 1, 0, aux.Stringid(m,0))
tc:RegisterFlagEffect(0, RESET_EVENT + RESETS_STANDARD, EFFECT_FLAG_CLIENT_HINT, 1, 0, aux.Stringid(30553012,0))
end
end
end
......
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