Commit df5c8258 authored by Tachibana's avatar Tachibana

eme

parent e76d24e7
......@@ -31,7 +31,7 @@ function c51562806.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(c,REASON_COST+REASON_DISCARD)
end
function c51562806.thfilter(c)
return c:IsSetCard(0x351a) and c:IsFaceup() and (c:IsAbleToHand() or c:IsAbleToDeck()) and not c:IsCode(51562806)
return c:IsSetCard(0x351a) and c:IsFaceup() and c:IsAbleToHand() and c:IsAbleToDeck() and not c:IsCode(51562806)
end
function c51562806.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c51562806.thfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,2,nil) end
......
......@@ -200,10 +200,10 @@ function c51562809.disop(e,tp,eg,ep,ev,re,r,rp)
end
--ef4
function c51562809.repfilter(c,tp)
return c:IsControler(tp) and c:IsLocation(LOCATION_ONFIELD+LOCATION_GRAVE) and c:IsAbleToHand() and c:GetDestination()==LOCATION_DECK
return and c:IsSetCard(0x351a) and c:IsControler(tp) and c:IsLocation(LOCATION_ONFIELD+LOCATION_GRAVE) and c:IsAbleToHand() and c:GetDestination()==LOCATION_DECK
end
function c51562809.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return bit.band(r,REASON_EFFECT)~=0 and re and re:GetHandler():IsSetCard(0x351a) and eg:IsExists(c51562809.repfilter,1,nil,tp) end
if chk==0 then return bit.band(r,REASON_EFFECT)~=0 and re and eg:IsExists(c51562809.repfilter,1,nil,tp) end
if Duel.SelectYesNo(tp,aux.Stringid(51562809,1)) then
local g=eg:Filter(c51562809.repfilter,nil,tp)
local ct=g:GetCount()
......
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