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

1+1=3

parent cf668cf5
......@@ -121,6 +121,12 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local tc=hg:Select(tp,1,1,nil):GetFirst()
local te=tc.hand_effect
local op=te:GetOperation()
if op then op(te,tp,eg,ep,ev,re,r,rp) end
if op then
tc:CreateEffectRelation(te)
local _GetHandler=Effect.GetHandler
Effect.GetHandler=function() return tc end
op(te,tp,eg,ep,ev,re,r,rp)
Effect.GetHandler=_GetHandler
end
end
end
\ No newline at end of file
......@@ -42,8 +42,8 @@ function s.initial_effect(c)
e5:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e5:SetCountLimit(1,id)
e5:SetCondition(s.drcon)
e5:SetTarget(s.thtg2)
e5:SetOperation(s.thop2)
e5:SetTarget(s.tgtg2)
e5:SetOperation(s.tgop2)
c:RegisterEffect(e5)
if not s.global_check then
s.global_check=true
......@@ -260,10 +260,10 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
end
end
function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
function s.tgtg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
end
function s.tgop(e,tp,eg,ep,ev,re,r,rp)
function s.tgop2(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD)
local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
......
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