Commit 37e0d251 authored by VanillaSalt's avatar VanillaSalt

Merge branch 'Tian'

parents afb02a9e 04b33440
......@@ -28,7 +28,8 @@ function c36693940.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetDescription(aux.Stringid(36693940,0))
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(36693940)
e1:SetCode(EFFECT_ADD_FUSION_SETCODE)
e1:SetValue(0xad)
e1:SetReset(RESET_EVENT+0x1fe0000)
tc:RegisterEffect(e1)
end
......
......@@ -2,7 +2,7 @@
function c83866861.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcFunRep(c,c83866861.ffilter,3,false)
aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0xad),3,false)
--spsummon condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......@@ -39,9 +39,6 @@ function c83866861.initial_effect(c)
e4:SetValue(c83866861.atkval)
c:RegisterEffect(e4)
end
function c83866861.ffilter(c)
return c:IsFusionSetCard(0xad) or c:IsHasEffect(36693940)
end
function c83866861.aclimit(e,re,tp)
return not re:GetHandler():IsImmuneToEffect(e)
end
......
......@@ -480,7 +480,8 @@ EFFECT_UNSUMMONABLE_CARD =336 --不能通常召唤的怪獸
EFFECT_DISABLE_CHAIN_FIELD =337 --連鎖串中場上發動的效果無效(Duel.NegateRelatedChain())
EFFECT_DISCARD_COST_CHANGE =338 --反制陷阱捨棄手牌的代價改變(解放之阿里阿德涅)
EFFECT_HAND_SYNCHRO =339 --用手牌的怪獸當作同步素材
EFFECT_ADD_FUSION_CODE =340 --
EFFECT_ADD_FUSION_CODE =340 --作为融合素材时可以当作某一卡名(融合识别)
EFFECT_ADD_FUSION_SETCODE =341 --作为融合素材时可以当作某一字段(魔玩具改造)
--下面是诱发效果的诱发事件、时点 (如果是TYPE_SINGLE则自己发生以下事件后触发,如果TYPE_FIELD则场上任何卡发生以下事件都触发)
EVENT_STARTUP =1000 --游戏开始时
......
......@@ -330,12 +330,13 @@ function Auxiliary.XyzTarget2(f,lv,minc,maxc,alterf,desc,op)
local b2=ct<1 and (not min or min<=1) and mg:IsExists(Auxiliary.XyzAlterFilter,1,nil,alterf,c)
and (not op or op(e,tp,0))
local g=nil
if b2 and (not b1 or Duel.SelectYesNo(tp,desc)) then
if b2 and Duel.SelectYesNo(tp,desc) then
e:SetLabel(1)
if op then op(e,tp,1) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
g=mg:FilterSelect(tp,Auxiliary.XyzAlterFilter,1,1,nil,alterf,c)
else
if not b1 then return false end
e:SetLabel(0)
g=Duel.SelectXyzMaterial(tp,c,f,lv,minc,maxc,og)
end
......
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