Commit 49332ff5 authored by 未闻皂名's avatar 未闻皂名

2023/2/22 新增:合成魔兽 加泽特

parent 63dda55c
Pipeline #20316 passed with stages
in 6 minutes and 53 seconds
No preview for this file type
local m=120238004
local cm=_G["c"..m]
cm.name="合成魔兽 加泽特"
function cm.initial_effect(c)
--Atk Up
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_MATERIAL_CHECK)
e1:SetValue(cm.check)
c:RegisterEffect(e1)
--Summon Only
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_SUMMON_COST)
e2:SetOperation(cm.facechk)
e2:SetLabelObject(e1)
c:RegisterEffect(e2)
end
--Atk Up
function cm.check(e,c)
local g=c:GetMaterial()
local tc=g:GetFirst()
local atk=0
while tc do
atk=atk+tc:GetBaseAttack()
tc=g:GetNext()
end
if atk>0 and e:GetLabel()==1 then
e:SetLabel(0)
RD.AttachAtkDef(e,c,atk,0,RESET_EVENT+0xff0000)
end
end
--Summon Only
function cm.facechk(e,tp,eg,ep,ev,re,r,rp)
e:GetLabelObject():SetLabel(1)
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