Commit 0d4f2001 authored by 未闻皂名's avatar 未闻皂名

2023/1/6 新增:传统税,更新翻译

parent 3a84f1c8
No preview for this file type
local m=120235056
local cm=_G["c"..m]
cm.name="穿越侍闪电"
cm.name="穿越侍电光"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
......
local m=120235057
local cm=_G["c"..m]
cm.name="接合科技长城"
cm.name="接合科技巨壁"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
......
local m=120235058
local cm=_G["c"..m]
cm.name="上级格挡"
cm.name="上级屏蔽积木"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
......
local m=120235063
local cm=_G["c"..m]
cm.name="传统税"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_DRAW)
e1:SetCondition(cm.condition)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
c:RegisterEffect(e1)
end
--Activate
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase()
return ep~=tp and (ph==PHASE_MAIN1 or ph==PHASE_MAIN2)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>1 end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,2,1-tp,LOCATION_HAND)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
RD.SendOpponentHandToGrave(tp,aux.Stringid(m,1),2,2)
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