Commit 0ee8564a authored by Tachibana's avatar Tachibana

ybb

parent e098bcfd
Pipeline #10955 passed with stages
in 25 minutes and 33 seconds
......@@ -74,7 +74,13 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local b2=tc:GetActivateEffect():IsActivatable(tp)
if b2 then
if tc:IsType(TYPE_FIELD) then
local fc=Duel.GetFieldCard(tp,LOCATION_FZONE,0)
if fc then
Duel.SendtoGrave(fc,REASON_RULE)
Duel.BreakEffect()
end
Duel.MoveToField(tc,tp,tp,LOCATION_FZONE,POS_FACEUP,true)
Duel.RaiseEvent(tc,4179255,te,0,tp,tp,Duel.GetCurrentChain())
else
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
end
......@@ -86,6 +92,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
e:SetCategory(te:GetCategory())
e:SetProperty(te:GetProperty())
tc:CreateEffectRelation(te)
te:UseCountLimit(tp,1,true)
if cost then cost(te,tep,eg,ep,ev,re,r,rp,1) end
local res,teg,tep,tev,tre,tr,trp=Duel.CheckEvent(event,true)
if tg then tg(e,tp,teg,tep,tev,tre,tr,trp,1) 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