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

2021/12/27 新增:炎神专属卡,更新翻译,目前极大怪兽标记为同盟(0x400)类型

parent dfca2a32
No preview for this file type
No preview for this file type
......@@ -32,8 +32,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoDeck(g,nil,2,REASON_COST)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil)
and Duel.IsPlayerCanDraw(tp,1) end
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end
......@@ -49,10 +48,9 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
sg=mg
end
Duel.HintSelection(sg)
Duel.Destroy(sg,REASON_EFFECT)
if Duel.Destroy(sg,REASON_EFFECT)~=0 and Duel.IsPlayerCanDraw(tp,1) then
local tc=Duel.GetDecktopGroup(tp,1):GetFirst()
Duel.Draw(tp,1,REASON_EFFECT)
if tc then
Duel.ConfirmCards(1-tp,tc)
if tc:IsCode(list[1],list[2]) then
Duel.Damage(1-tp,500,REASON_EFFECT)
......
local m=120205013
local cm=_G["c"..m]
cm.name="执行美少女·菲娜"
cm.name="可爱处决者·烈火女"
function cm.initial_effect(c)
--Atk Up
local e1=Effect.CreateEffect(c)
......
local m=120205015
local list={120183045}
local cm=_G["c"..m]
cm.name="机械扇风鸟"
cm.name="机械烧蚀伞护鸟"
function cm.initial_effect(c)
aux.AddCodeList(c,list[1])
--To Hand
......
local m=120205037
local list={120170029,120170029}
local cm=_G["c"..m]
cm.name="花牙绚烂美香·绘都兰世"
cm.name="花牙绚烂名花·绘都兰世"
function cm.initial_effect(c)
aux.AddCodeList(c,list[1],list[2])
--Fusion Material
......
local m=120205045
local cm=_G["c"..m]
cm.name="火山引燃超级驱动"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DAMAGE+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCondition(cm.condition)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
c:RegisterEffect(e1)
end
--Activate
function cm.confilter(c)
return c:IsFaceup() and c:IsType(TYPE_MAXIMUM) and c:IsAttribute(ATTRIBUTE_FIRE) and c:IsRace(RACE_WARRIOR)
end
function cm.exfilter(c)
return RushDuel.IsMaximumMode(c)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.confilter,tp,LOCATION_MZONE,0,1,nil)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetTargetPlayer(1-tp)
Duel.SetTargetParam(800)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,800)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Damage(p,d,REASON_EFFECT)
if Duel.IsExistingMatchingCard(cm.exfilter,tp,LOCATION_MZONE,0,1,nil)
and Duel.IsExistingMatchingCard(nil,tp,0,LOCATION_ONFIELD,1,nil)
and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp,nil,tp,0,LOCATION_ONFIELD,1,1,nil)
if g:GetCount()>0 then
Duel.HintSelection(g)
Duel.Destroy(g,REASON_EFFECT)
end
end
end
\ No newline at end of file
local m=120205063
local list={120194005}
local cm=_G["c"..m]
cm.name="神圣装甲 -炸裂力-"
cm.name="神圣装甲 -炸裂力-"
function cm.initial_effect(c)
aux.AddCodeList(c,list[1])
--Activate
......
--Constant
TYPE_MAXIMUM = 0x400
SUMMON_TYPE_MAXIMUM = 0x45000000
RACE_CYBORG = 0x2000000
RACE_MAGICALKNIGHT = 0x4000000
......@@ -244,8 +245,12 @@ function RushDuel.MaximumSummonOperation(left_code,right_code)
sg:Merge(g)
end
end
function RushDuel.IsMaximumMode(e)
return e:GetHandler():IsSummonType(SUMMON_TYPE_MAXIMUM)
function RushDuel.IsMaximumMode(e_or_c)
local c=e_or_c
if aux.GetValueType(c)=="Effect" then
c=c:GetHandler()
end
return c:IsSummonType(SUMMON_TYPE_MAXIMUM)
end
function RushDuel.MaxPosCondition(e)
return RushDuel.IsMaximumMode(e) and e:GetHandler():IsAttackPos()
......
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