Commit a8dd6069 authored by DailyShana's avatar DailyShana

update

require Fluorohydride/ygopro-core@510b99d
parent f41dbff9
......@@ -37,7 +37,7 @@ function c22174866.thfilter(c)
end
function c22174866.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and c22174866.thfilter(chkc) end
if chk==0 then return ep==tp end
if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectTarget(tp,c22174866.thfilter,tp,0,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,g:GetCount(),0,0)
......
......@@ -85,13 +85,10 @@ function c24094258.drcfilter(c,tp)
return c:IsPreviousLocation(LOCATION_PZONE) and c:GetPreviousControler()==tp
end
function c24094258.drcon(e,tp,eg,ep,ev,re,r,rp)
if eg:IsExists(c24094258.drcfilter,1,nil,tp) then
e:SetLabel(tp)
return true
else return false end
return eg:IsExists(c24094258.drcfilter,1,nil,tp)
end
function c24094258.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetLabel()==tp end
if chk==0 then return true end
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
......
......@@ -53,7 +53,7 @@ function c58569561.filter(c)
end
function c58569561.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c58569561.filter(chkc) end
if chk==0 then return ep==tp end
if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSCHANGE)
local g=Duel.SelectTarget(tp,c58569561.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,g:GetCount(),0,0)
......
......@@ -17,7 +17,6 @@ function c85967160.initial_effect(c)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCondition(c85967160.adcon)
e2:SetTarget(c85967160.adtg)
e2:SetOperation(c85967160.adop)
c:RegisterEffect(e2)
end
......@@ -28,9 +27,6 @@ end
function c85967160.adcon(e,tp,eg,ep,ev,re,r,rp)
return ep==tp
end
function c85967160.adtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return ep==tp end
end
function c85967160.adop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsFaceup() then
......
......@@ -33,7 +33,7 @@ function c96789758.drcon(e,tp,eg,ep,ev,re,r,rp)
return ep==tp
end
function c96789758.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return ep==tp end
if chk==0 then return true end
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
......
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