Commit f827f13c authored by 未闻皂名's avatar 未闻皂名

2022/10/7 新增:接合科技盗龙,更新翻译,修改装备逻辑(已装备怪兽不符合装备条件,装备依旧有效)

parent 7ee07b26
Pipeline #17084 passed with stages
in 4 minutes and 45 seconds
No preview for this file type
No preview for this file type
......@@ -48,6 +48,6 @@ function RushDuel.EquipOperation(target)
end
function RushDuel.EquipFilter(target)
return function(e, c)
return target(c, e, e:GetHandlerPlayer(), false)
return e:GetHandler():GetEquipTarget() == c or target(c, e, e:GetHandlerPlayer(), false)
end
end
local m=120109021
local cm=_G["c"..m]
cm.name="接合科技盗龙"
function cm.initial_effect(c)
--Discard Deck
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_DECKDES+CATEGORY_DAMAGE+CATEGORY_POSITION)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(cm.condition)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
--Discard Deck
function cm.ctfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsLocation(LOCATION_GRAVE)
end
function cm.exfilter(c)
return c:IsFaceup() and c:IsType(TYPE_EQUIP)
end
function cm.posfilter(c)
return c:IsAttackPos() and RD.IsCanChangePosition(c)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return RD.IsSummonTurn(e:GetHandler())
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,2)
and Duel.IsPlayerCanDiscardDeck(1-tp,2) end
Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,PLAYER_ALL,2)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetDecktopGroup(tp,2)
local g2=Duel.GetDecktopGroup(1-tp,2)
g1:Merge(g2)
Duel.DisableShuffleCheck()
if Duel.SendtoGrave(g1,REASON_EFFECT)==0 then return end
local ct=Duel.GetOperatedGroup():FilterCount(cm.ctfilter,nil)
if ct==0 then return end
if Duel.Damage(1-tp,ct*100,REASON_EFFECT)~=0
and Duel.IsExistingMatchingCard(cm.exfilter,tp,LOCATION_ONFIELD,0,1,nil) then
RD.CanSelectAndDoAction(aux.Stringid(m,1),HINTMSG_POSCHANGE,cm.posfilter,tp,0,LOCATION_MZONE,1,1,nil,function(sg)
RD.ChangePosition(sg,POS_FACEUP_DEFENSE)
end)
end
end
\ No newline at end of file
local m=120228017
local cm=_G["c"..m]
cm.name="混沌战士运动服士 -干燥的使者-"
cm.name="混沌战士运动服士 –干燥的使者–"
function cm.initial_effect(c)
--To Hand
local e1=Effect.CreateEffect(c)
......
local m=120228031
local cm=_G["c"..m]
cm.name="财宝兔矮人"
cm.name="拾金而昧侏儒兔"
function cm.initial_effect(c)
--Discard Deck
local e1=Effect.CreateEffect(c)
......
local m=120228058
local cm=_G["c"..m]
cm.name="兽剑 虎"
cm.name="兽剑 虎齿剑"
function cm.initial_effect(c)
--Activate
RD.RegisterEquipEffect(c,nil,nil,cm.target)
......@@ -20,6 +20,5 @@ end
--Activate
cm.trival=RD.ValueDoubleTribute(ATTRIBUTE_ALL,RACE_ALL)
function cm.target(c,e,tp,chk)
return c:IsControler(tp) and c:IsFaceup() and c:IsType(TYPE_NORMAL)
and (e:GetHandler():GetEquipTarget()==c or c:IsAttackBelow(1400))
return c:IsControler(tp) and c:IsFaceup() and c:IsType(TYPE_NORMAL) and c:IsAttackBelow(1400)
end
\ No newline at end of file
local m=120228063
local cm=_G["c"..m]
cm.name="回收运动服"
cm.name="放回充能运动服"
function cm.initial_effect(c)
--Activate
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