Commit 6dd0ab44 authored by TanakaKotoha's avatar TanakaKotoha

foo foo

parent 9c224e20
......@@ -47,7 +47,7 @@ function c12008008.initial_effect(c)
c:RegisterEffect(e5)
end
function c12008008.condition(e,tp,eg,ep,ev,re,r,rp)
local tp=e:GetHandler()
local tp=e:GetHandlerPlayer()
return Duel.GetLP(tp)<Duel.GetLP(1-tp)
end
function c12008008.filter(c,lp)
......
......@@ -62,7 +62,7 @@ function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
and Duel.IsExistingTarget(cm.dfilter,tp,LOCATION_GRAVE,0,1,c,c) end
local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_GRAVE,0,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local tt=g:SelectSubGroup(tp,cm.gilter,true,2,2)
local tt=g:SelectSubGroup(tp,cm.gilter,false,2,2)
Duel.SetTargetCard(tt)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,3,0,0)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,2)
......@@ -75,7 +75,7 @@ function cm.drop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetOperatedGroup()
if g:IsExists(Card.IsLocation,1,nil,LOCATION_DECK) then Duel.ShuffleDeck(tp) end
local ct=g:FilterCount(Card.IsLocation,nil,LOCATION_DECK+LOCATION_EXTRA)
if ct==3 then
if ct==2 then
Duel.BreakEffect()
Duel.Draw(tp,1,REASON_EFFECT)
end
......
......@@ -47,6 +47,7 @@ function cm.thop(e,tp)
local tg=g:SelectSubGroup(tp,aux.dncheck,false,2,2)
if #tg~=2 then return end
getmetatable(e:GetHandler()).announce_filter={TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK,OPCODE_ISTYPE,OPCODE_NOT}
Duel.ConfirmCards(1-tp,tg)
local ac=Duel.AnnounceCard(1-tp,table.unpack(getmetatable(e:GetHandler()).announce_filter))
local tc=tg:RandomSelect(1-tp,1):GetFirst()
if Duel.SendtoHand(tc,nil,REASON_EFFECT)>0 then
......
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