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

2023/8/14 新增:青眼新卡,更新翻译,转移正式卡

parent c7d09750
Pipeline #23113 passed with stages
in 8 minutes and 40 seconds
No preview for this file type
No preview for this file type
......@@ -2,10 +2,11 @@
RushDuel = RushDuel or {}
-- 内部方法: 双重解放的对象怪兽信息
function RushDuel._private_double_tribute_info(code, attribute, level, race, attack, defense)
function RushDuel._private_double_tribute_info(code, attribute, type, level, race, attack, defense)
local info = {}
info.code = code
info.attribute = attribute
info.type = type
info.level = level
info.race = race
info.attack = attack
......@@ -18,6 +19,8 @@ function RushDuel._private_is_double_tribute_info_different(info1, info2)
return true
elseif info1.attribute ~= info2.attribute then
return true
elseif info1.type ~= info2.type then
return true
elseif info1.level ~= info2.level then
return true
elseif info1.race ~= info2.race then
......@@ -31,13 +34,18 @@ function RushDuel._private_is_double_tribute_info_different(info1, info2)
end
-- 效果值: 双重解放
function RushDuel.ValueDoubleTributeMix(ignore, code, attribute, level, race, attack, defense)
function RushDuel.ValueDoubleTributeMix(ignore, code, attribute, type, level, race, attack, defense)
return function(e, c)
if e == nil then
return ignore, RushDuel._private_double_tribute_info(code, attribute, level, race, attack, defense)
return ignore, RushDuel._private_double_tribute_info(code, attribute, type, level, race, attack, defense)
end
return (code == nil or c:IsCode(code)) and (attribute == nil or c:IsAttribute(attribute)) and (level == nil or c:IsLevel(level)) and (race == nil or c:IsRace(race)) and
(attack == nil or c:IsAttack(attack)) and (defense == nil or c:IsDefense(defense))
return (code == nil or c:IsCode(code))
and (attribute == nil or c:IsAttribute(attribute))
and (type == nil or c:IsType(type))
and (level == nil or c:IsLevel(level))
and (race == nil or c:IsRace(race))
and (attack == nil or c:IsAttack(attack))
and (defense == nil or c:IsDefense(defense))
end
end
-- 效果值: 双重解放 全范围
......@@ -51,19 +59,23 @@ function RushDuel.ValueDoubleTributeAll(ignore)
end
-- 效果值: 双重解放 卡名
function RushDuel.ValueDoubleTributeCode(code, ignore)
return RushDuel.ValueDoubleTributeMix(ignore, code, nil, nil, nil, nil, nil)
return RushDuel.ValueDoubleTributeMix(ignore, code, nil, nil, nil, nil, nil, nil)
end
-- 效果值: 双重解放 属性/种族
function RushDuel.ValueDoubleTributeAttrRace(attribute, race, ignore)
return RushDuel.ValueDoubleTributeMix(ignore, nil, attribute, nil, race, nil, nil)
return RushDuel.ValueDoubleTributeMix(ignore, nil, attribute, nil, nil, race, nil, nil)
end
-- 效果值: 双重解放 属性/类型
function RushDuel.ValueDoubleTributeAttrType(attribute, type, ignore)
return RushDuel.ValueDoubleTributeMix(ignore, nil, attribute, type, nil, nil, nil, nil)
end
-- 效果值: 双重解放 等级/属性/种族
function RushDuel.ValueDoubleTributeLvAttrRace(level, attribute, race, ignore)
return RushDuel.ValueDoubleTributeMix(ignore, nil, attribute, level, race, nil, nil)
return RushDuel.ValueDoubleTributeMix(ignore, nil, attribute, nil, level, race, nil, nil)
end
-- 效果值: 双重解放 攻击力/守备力
function RushDuel.ValueDoubleTributeAtkDef(attack, defense, ignore)
return RushDuel.ValueDoubleTributeMix(ignore, nil, nil, nil, nil, attack, defense)
return RushDuel.ValueDoubleTributeMix(ignore, nil, nil, nil, nil, nil, attack, defense)
end
-- 判断: 是否可以赋予双重解放
......
local m=120249040
local cm=_G["c"..m]
cm.name="断念的哈维"
cm.name="看破之哈维"
function cm.initial_effect(c)
--Confirm
local e1=Effect.CreateEffect(c)
......
local m=120249051
local cm=_G["c"..m]
cm.name="气焰爆破"
cm.name="斗气破坏力"
function cm.initial_effect(c)
--Activate
RD.RegisterEquipEffect(c,nil,nil,cm.target)
......
local m=120249055
local cm=_G["c"..m]
cm.name="绅士机会"
cm.name="三猫选择"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
......
local m=120249062
local list={120230001}
local cm=_G["c"..m]
cm.name="龙族逃脱"
cm.name="龙战闪避"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Activate
......
local m=120250008
local cm=_G["c"..m]
cm.name="重力龙"
cm.name="重力龙"
function cm.initial_effect(c)
--Atk Up
local e1=Effect.CreateEffect(c)
......
local m=120252001
local list={120120000}
local cm=_G["c"..m]
cm.name="青眼究极龙"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Fusion Material
RD.AddFusionProcedure(c,list[1],list[1],list[1])
end
\ No newline at end of file
local m=120252003
local list={120120000}
local cm=_G["c"..m]
cm.name="青眼煌龙"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Change Code
RD.EnableChangeCode(c,list[1],LOCATION_HAND)
--Change Code
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(cm.condition)
e1:SetCost(cm.cost)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
--Change Code
function cm.exfilter(c)
return c:IsFaceup() and RD.IsLegendCard(c) and c:IsType(TYPE_NORMAL)
end
function cm.desfilter(c)
return c:IsFaceup() and c:IsLevelBelow(8)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsCode(list[1])
end
cm.cost=RD.CostSendDeckTopToGrave(1)
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsFaceup() and c:IsRelateToEffect(e) then
RD.ChangeCode(e,c,list[1],RESET_EVENT+RESETS_STANDARD+RESET_DISABLE+RESET_PHASE+PHASE_END)
RD.AttachAtkDef(e,c,500,0,RESET_EVENT+RESETS_STANDARD+RESET_DISABLE+RESET_PHASE+PHASE_END)
if Duel.IsExistingMatchingCard(cm.exfilter,tp,LOCATION_MZONE,0,1,nil) then
RD.CanSelectAndDoAction(aux.Stringid(m,1),HINTMSG_DESTROY,cm.desfilter,tp,0,LOCATION_MZONE,1,1,nil,function(sg)
Duel.Destroy(sg,REASON_EFFECT)
end)
end
end
end
\ No newline at end of file
local m=120252004
local list={120120000}
local cm=_G["c"..m]
cm.name="青眼幻影龙"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Special Summon Procedure
RD.AddHandSpecialSummonProcedure(c,aux.Stringid(m,0),cm.spcon,nil,nil,nil,POS_FACEUP_DEFENSE)
--Change Code
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,1))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(cm.condition)
e1:SetCost(cm.cost)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
--Special Summon Procedure
function cm.spconfilter(c)
return c:IsFaceup() and c:IsLevelAbove(8) and c:IsRace(RACE_DRAGON)
end
function cm.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(cm.spconfilter,tp,LOCATION_MZONE,0,1,nil)
end
--Change Code
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsCode(list[1])
end
cm.cost=RD.CostSendDeckTopToGrave(1)
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsFaceup() and c:IsRelateToEffect(e) then
RD.ChangeCode(e,c,list[1],RESET_EVENT+RESETS_STANDARD+RESET_DISABLE+RESET_PHASE+PHASE_END)
--Extra Material
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,2))
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(m)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetRange(LOCATION_MZONE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE+RESET_PHASE+PHASE_END)
c:RegisterEffect(e1)
end
end
\ No newline at end of file
local m=120252014
local cm=_G["c"..m]
cm.name="圣构体"
function cm.initial_effect(c)
--Double Tribute
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DOUBLE_TRIBUTE)
e1:SetValue(cm.trival)
c:RegisterEffect(e1)
end
--Double Tribute
cm.trival=RD.ValueDoubleTributeAttrType(ATTRIBUTE_LIGHT,TYPE_NORMAL)
\ No newline at end of file
local m=120252035
local list={120120000}
local cm=_G["c"..m]
cm.name="青色眼睛的秘宝"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_GRAVE_SPSUMMON+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_DESTROYED)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetCondition(cm.condition)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
c:RegisterEffect(e1)
end
--Activate
function cm.confilter(c,tp,rp)
return c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_MZONE)
and ((rp==1-tp and c:IsReason(REASON_EFFECT)) or c==Duel.GetAttackTarget())
end
function cm.spfilter(c,e,tp)
return c:IsLevelAbove(8) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_DRAGON)
and RD.IsCanBeSpecialSummoned(c,e,tp,POS_FACEUP)
end
function cm.exfilter(c)
return c:IsFaceup() and c:IsLinkCode(list[1])
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(cm.confilter,1,nil,tp,rp)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetMZoneCount(tp)>0
and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if RD.SelectAndSpecialSummon(aux.NecroValleyFilter(cm.spfilter),tp,LOCATION_GRAVE,0,1,1,nil,e,POS_FACEUP)~=0
and Duel.IsExistingMatchingCard(cm.exfilter,tp,LOCATION_MZONE,0,1,nil) then
RD.CanSelectAndDoAction(aux.Stringid(m,1),HINTMSG_DESTROY,nil,tp,0,LOCATION_ONFIELD,1,1,nil,function(sg)
Duel.Destroy(sg,REASON_EFFECT)
end)
end
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