Commit 3dc65662 authored by POLYMER's avatar POLYMER

fix

parent 3ad6d71c
......@@ -37,7 +37,7 @@ function s.initial_effect(c)
e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e5:SetCode(EVENT_TO_HAND)
e5:SetCountLimit(1,id)
e5:SetProperty(EFFECT_FLAG_DELAY)
e5:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e5:SetCondition(s.tgcon)
e5:SetTarget(s.tgtg)
e5:SetOperation(s.tgop)
......@@ -79,6 +79,7 @@ function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToGrave,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectTarget(tp,Card.IsAbleToGrave,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
Duel.HintSelection(g)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,1,0,0)
end
function s.tgop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -31,7 +31,7 @@ function s.initial_effect(c)
end
s.toss_coin=true
function s.desfilter(c)
return c:IsSetCard(0x9a7c) and c:IsFaceupEx()
return c:IsSetCard(0x9a7c) and c:IsFaceupEx() and c:IsType(TYPE_MONSTER)
end
function s.cotg(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
......
......@@ -75,7 +75,7 @@ function c71403010.op1(e,tp,eg,ep,ev,re,r,rp)
if op1==0 then
if Duel.SendtoExtraP(tc,nil,REASON_EFFECT)~=0 and tc:IsLocation(LOCATION_EXTRA) and tc:IsFaceup() then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD)
local og=Duel.SelectMatchingCard(c71403010.filter1a2,tp,LOCATION_EXTRA+LOCATION_HAND,0,1,1,nil,p_zone_check)
local og=Duel.SelectMatchingCard(tp,c71403010.filter1a2,tp,LOCATION_EXTRA+LOCATION_HAND,0,1,1,nil,p_zone_check)
if og:GetCount()==0 then return end
local oc=og:GetFirst()
local op2=0
......
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