Commit f522a414 authored by 聖園ミカ's avatar 聖園ミカ 🐟

1+1=3

parent 63e931fd
......@@ -19,7 +19,6 @@ function cm.initial_effect(c)
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_FLIP)
--e2:SetCountLimit(1,m)
e2:SetCost(cm.thcost)
e2:SetTarget(cm.thtg)
......
......@@ -60,8 +60,8 @@ function cm.thcon2(e,tp,eg,ep,ev,re,r,rp)
end
function cm.thtg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local tc=Duel.GetFieldCard(tp,0,LOCATION_FZONE)
if chkc then return false end
if chk==0 then return tc and tc:IsAbleToHand() and tc:IsCanBeEffectTarget(e) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 end
if chkc then return chkc:IsLocation(LOCATION_FZONE) and chkc:IsAbleToHand(1-tp) and chkc:IsControler(1-tp) end
if chk==0 then return tc and tc:IsAbleToHand(1-tp) and tc:IsCanBeEffectTarget(e) and Duel.GetLocationCount(1-tp,LOCATION_SZONE)>0 end
Duel.SetTargetCard(tc)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,tc,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,e:GetHandler(),1,0,0)
......
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