Commit 8221d572 authored by fallenstardust's avatar fallenstardust

fix LEDE-JP039\055

parent 5a9c8264
......@@ -20,7 +20,7 @@ function c101204039.initial_effect(c)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetHintTiming(0,TIMING_BATTLE_START+TIMING_ATTACK+TIMINGS_CHECK_MONSTER+TIMING_MAIN_END)
e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1,101204039+EFFECT_COUNT_CODE_DUEL)
e2:SetCountLimit(1,101204140+EFFECT_COUNT_CODE_DUEL)
e2:SetCondition(c101204039.spcon2)
e2:SetCost(c101204039.spcost2)
e2:SetTarget(c101204039.sptg2)
......@@ -83,7 +83,7 @@ function c101204039.spcost2(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e1,tp)
end
function c101204039.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c101204039.spop2(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -98,17 +98,19 @@ function c101204055.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c101204055.drop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Draw(p,d,REASON_EFFECT)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetDescription(aux.Stringid(101204055,2))
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SUMMON_PROC)
e1:SetTargetRange(LOCATION_HAND,0)
e1:SetCountLimit(1,101204055)
e1:SetCondition(c101204055.ntcon)
e1:SetTarget(c101204055.nttg)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
if Duel.Draw(p,d,REASON_EFFECT)~=0 and Duel.GetFlagEffect(tp,101204055)==0 then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetDescription(aux.Stringid(101204055,2))
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SUMMON_PROC)
e1:SetTargetRange(LOCATION_HAND,0)
e1:SetCountLimit(1,101204055)
e1:SetCondition(c101204055.ntcon)
e1:SetTarget(c101204055.nttg)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
Duel.RegisterFlagEffect(tp,101204055,RESET_PHASE+PHASE_END,EFFECT_FLAG_OATH,1)
end
end
function c101204055.ntcon(e,c,minc)
if c==nil then return true 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