Commit 15566a5c authored by TanakaKotoha's avatar TanakaKotoha

foo foo

parent 592e2128
......@@ -48,7 +48,7 @@ function cm.costop(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.filter(c)
return c:IsAbleToHand() and c:IsSetCard(0xfb5) and c:IsFacedown()
return c:IsAbleToHand() and c:IsSetCard(0x8fb5) and c:IsFacedown()
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToDeck() and Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil) end
......@@ -59,7 +59,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) then
Duel.SendtoDeck(c,tp,2,REASON_EFFECT)
c:ReverseInDeck()
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.GetMatchingGroup(cm.filter,tp,LOCATION_DECK,0,nil)
if g:GetCount()>0 then
......@@ -67,9 +67,10 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(gg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,gg)
end
end
end
function cm.chainfilter(re,tp,cid)
return not ( re:GetHandler():IsSetCard(0xfb5) and re:GetHandler():IsLocation(LOCATION_HAND) )
return not ( re:GetHandler():IsSetCard(0x8fb5) and re:GetHandler():IsLocation(LOCATION_HAND) )
end
function cm.spcon(e,c)
if c==nil then return true end
......@@ -97,6 +98,7 @@ end
function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.Recover(tp,2000,REASON_EFFECT)
if not c:IsPreviousLocation(LOCATION_DECK) then return end
if e:GetLabel()==1 and c:IsRelateToEffect(e) then
Duel.SendtoHand(c,tp,REASON_EFFECT)
elseif e:GetLabel()==2 then
......
......@@ -135,7 +135,8 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local op=te:GetOperation()
if op then op(e,tp,eg,ep,ev,re,r,rp) end
Duel.RaiseEvent(tc,EVENT_CHAINING,te,0,tp,tp,Duel.GetCurrentChain())
else
elseif Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)>1 then
Duel.DiscardHand(tp,aux.TRUE,2,2,REASON_EFFECT+REASON_DISCARD)
local g=Duel.GetMatchingGroup(cm.spfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,nil,e,tp)
if g:GetCount()>cl then
local tc=g:RandomSelect(tp,cl)
......
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