Commit 2f139b66 authored by nanahira's avatar nanahira Committed by GitHub

fix

parent 3fdd1beb
......@@ -10,6 +10,7 @@ function c61665245.initial_effect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCountLimit(1,61665245)
e1:SetCondition(c61665245.spcon)
e1:SetTarget(c61665245.sptg)
e1:SetOperation(c61665245.spop)
......@@ -31,7 +32,7 @@ function c61665245.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local zone=e:GetHandler():GetLinkedZone(1-tp)
if chk==0 then return Duel.GetLocationCount(1-tp,LOCATION_MZONE,tp,LOCATION_REASON_TOFIELD,zone)>0
and Duel.IsExistingMatchingCard(c61665245.spfilter1,tp,LOCATION_HAND,0,1,nil,e,tp,zone) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,tp,LOCATION_HAND+LOCATION_DECK)
end
function c61665245.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......@@ -55,8 +56,7 @@ function c61665245.spop(e,tp,eg,ep,ev,re,r,rp)
end
if tc and Duel.SpecialSummonStep(tc,0,tp,1-tp,false,false,POS_FACEUP_DEFENSE,zone) then
makeDisable(tc)
local g=Duel.GetMatchingGroup(c61665245.spfilter2,tp,LOCATION_DECK,0,nil,e,tp,tc:GetRace())
Duel.Damage(tp,1+#g,REASON_EFFECT)
local g=Duel.GetMatchingGroup(c61665245.spfilter2,tp,LOCATION_DECK,0,nil,e,tp,tc:GetRace())
if #g>0 and Duel.SelectYesNo(tp,aux.Stringid(61665245,1)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
......
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