Commit 5d97df75 authored by TanakaKotoha's avatar TanakaKotoha

carrot

parent f2ca03be
No preview for this file type
......@@ -6,6 +6,7 @@ function c10908001.initial_effect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_TO_HAND)
e1:SetCondition(c10908001.condition2)
e1:SetCountLimit(1,10908001)
e1:SetTarget(c10908001.drtg)
e1:SetOperation(c10908001.drop)
c:RegisterEffect(e1)
......
......@@ -30,7 +30,7 @@ function cm.initial_effect(c)
end
--e2
function cm.thfilter(c)
return c:IsSetCard(0xa83) and c:IsFaceup() and c:IsAbleToDeckOrExtraAsCost()
return c:IsSetCard(0xa83) and c:IsFaceup() and c:IsAbleToDeckOrExtraAsCost() and c:IsType(TYPE_MONSTER)
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingTarget(cm.thfilter,tp,LOCATION_REMOVED+LOCATION_GRAVE,0,1,nil) end
......
......@@ -233,9 +233,10 @@ end
function c53703003.eqop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local cg=c:GetColumnGroup()
if cg:GetCount()==0 then
elseif cg:GetCount()==1 then
local tc=cg:GetFirst()
local g=Duel.GetMatchingGroup(c53703003.eqfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,cg)
if g:GetCount()==0 then
elseif g:GetCount()==1 then
local tc=g:GetFirst()
if not Duel.Equip(tp,tc,c) then return end
local e7=Effect.CreateEffect(c)
e7:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -89,7 +89,7 @@ function c53703009.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return b2 or b3 end
end
function c53703009.spop(e,tp,eg,ep,ev,re,r,rp)
if not Duel.GetFieldCard(tp,LOCATION_PZONE,0) and not Duel.GetFieldCard(tp,LOCATION_PZONE,1) then return end
if Duel.GetFieldCard(tp,LOCATION_PZONE,0) and Duel.GetFieldCard(tp,LOCATION_PZONE,1) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
if Duel.GetTurnPlayer()~=tp then
local g=Duel.SelectMatchingCard(tp,c53703009.penfilter,tp,LOCATION_HAND,0,1,1,nil)
......
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