Commit e3b15f85 authored by Tachibana's avatar Tachibana

得得得得得

parent b4625b55
......@@ -24,7 +24,7 @@ function cm.initial_effect(c)
e3:SetRange(LOCATION_SZONE)
e3:SetTargetRange(LOCATION_MZONE,0)
e3:SetTarget(cm.eftg)
e3:SetLabelObject(e2)
e3:SetLabelObject(e4)
c:RegisterEffect(e3)
--set
local e3=Effect.CreateEffect(c)
......@@ -82,10 +82,11 @@ function cm.setop(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect()
end
Duel.MoveToField(c,tp,tp,LOCATION_FZONE,POS_FACEUP,true)
local te=c:GetActivateEffect()
te:UseCountLimit(tp,1,true)
local tep=c:GetControler()
local cost=te:GetCost()
if cost then cost(te,tep,eg,ep,ev,re,r,rp,1) end
Duel.RaiseEvent(c,4179255,e,0,tp,tp,Duel.GetCurrentChain())
Duel.RaiseEvent(c,4179255,te,0,tp,tp,Duel.GetCurrentChain())
end
end
\ No newline at end of file
......@@ -121,7 +121,14 @@ function cm.retop(e,tp,eg,ep,ev,re,r,rp)
return false
else
e:GetOwner():SetTurnCounter(ct+1)
Duel.ReturnToField(e:GetLabelObject())
local tc=e:GetLabelObject()
if tc:IsType(TYPE_FIELD) and tc:IsPreviousLocation(LOCATION_FZONE) then
Duel.MoveToField(tc,tp,tp,LOCATION_FZONE,POS_FACEUP,true)
elseif tc:IsType(TYPE_PENDULUM) and tc:IsPreviousLocation(LOCATION_PZONE) then
Duel.MoveToField(tc,tp,tp,LOCATION_PZONE,POS_FACEUP,true)
else
Duel.ReturnToField(e:GetLabelObject())
end
end
end
......
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