Commit dd4eb563 authored by DailyShana's avatar DailyShana

fix

parent e11aa44f
...@@ -19,9 +19,11 @@ function c67441435.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -19,9 +19,11 @@ function c67441435.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
end end
function c67441435.operation(e,tp,eg,ep,ev,re,r,rp) function c67441435.operation(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)==0 then return end if Duel.DiscardDeck(tp,1,REASON_EFFECT)~=0 then
Duel.DiscardDeck(tp,1,REASON_EFFECT) local oc=Duel.GetOperatedGroup():GetFirst()
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if oc:IsLocation(LOCATION_GRAVE) and c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end
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