Commit 5bf65722 authored by Tachibana's avatar Tachibana

得得得得得

parent 5d61ce8f
Pipeline #12074 passed with stages
in 29 minutes and 41 seconds
......@@ -57,13 +57,9 @@ function cm.initial_effect(c)
e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e5:SetCode(EVENT_SPSUMMON_SUCCESS)
e5:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetCondition(cm.condition)
e5:SetTarget(cm.target)
e5:SetOperation(cm.activate)
c:RegisterEffect(e1)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
e5:SetTarget(cm.thtarget)
e5:SetOperation(cm.thactivate)
c:RegisterEffect(e5)
end
function cm.cfilter(c,fc)
return c:IsAbleToGraveAsCost()
......@@ -125,13 +121,13 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(tc,nil,REASON_EFFECT)
end
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
function cm.thtarget(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(1-tp,5) end
Duel.SetTargetPlayer(1-tp)
Duel.SetTargetParam(5)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,1-tp,5)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
function cm.thactivate(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Draw(p,d,REASON_EFFECT)
end
\ No newline at end of file
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