Commit 9f563d65 authored by 未闻皂名's avatar 未闻皂名

2020/11/2 新增:背误射击,更新翻译

parent f2dcbb16
No preview for this file type
local m=120145060
local cm=_G["c"..m]
cm.name="背误射击"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_DESTROYED)
e1:SetCondition(cm.condition)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
c:RegisterEffect(e1)
end
--Activate
function cm.confilter(c,tp)
return c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_ONFIELD)
and bit.band(c:GetPreviousTypeOnField(),TYPE_SPELL+TYPE_TRAP)~=0
end
function cm.desfilter(c)
return c:IsFaceup() and c:IsType(TYPE_EFFECT) and c:IsLevelBelow(6)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and eg:IsExists(cm.confilter,1,nil,tp)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.desfilter,tp,0,LOCATION_MZONE,1,nil) end
local g=Duel.GetMatchingGroup(cm.desfilter,tp,0,LOCATION_MZONE,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp,cm.desfilter,tp,0,LOCATION_MZONE,1,1,nil)
if g:GetCount()>0 then
Duel.HintSelection(g)
Duel.Destroy(g,REASON_EFFECT)
end
end
\ No newline at end of file
local m=120150021 local m=120150021
local list={120150024} local list={120150024}
local cm=_G["c"..m] local cm=_G["c"..m]
cm.name="清洁贝雷帽 拖把大佐" cm.name="清洁贝雷帽·拖把大佐"
function cm.initial_effect(c) function cm.initial_effect(c)
aux.AddCodeList(c,list[1]) aux.AddCodeList(c,list[1])
--Draw --Draw
......
local m=120150022 local m=120150022
local cm=_G["c"..m] local cm=_G["c"..m]
cm.name="洗净的圣诞克罗斯" cm.name="洗净的圣布老人"
function cm.initial_effect(c) function cm.initial_effect(c)
--Draw & Recover --Draw & Recover
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
local m=120150023 local m=120150023
local list={120150024} local list={120150024}
local cm=_G["c"..m] local cm=_G["c"..m]
cm.name="洗铳士 射手" cm.name="洗铳士 洗涤射手"
function cm.initial_effect(c) function cm.initial_effect(c)
aux.AddCodeList(c,list[1]) aux.AddCodeList(c,list[1])
--Draw --Draw
......
local m=120150024 local m=120150024
local cm=_G["c"..m] local cm=_G["c"..m]
cm.name="白激炮 - 漂白马达" cm.name="白激泡-漂白剂迫击炮"
function cm.initial_effect(c) function cm.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
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