Commit 70c36cfd authored by 未闻皂名's avatar 未闻皂名

2025/3/3 新增:电子麒麟

parent f0ec7bfe
Pipeline #33422 passed with stages
in 11 minutes and 27 seconds
No preview for this file type
local m=120278008
local cm=_G["c"..m]
cm.name="电子麒麟"
function cm.initial_effect(c)
--To Grave
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
--To Grave
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsAbleToGrave()end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,c,1,0,0)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsControler(tp) then
Duel.SendtoGrave(c,REASON_EFFECT)
end
RD.CreateNoEffectDamageEffect(e,aux.Stringid(m,1),cm.damval,tp,1,0,RESET_PHASE+PHASE_END)
end
function cm.damval(e,re,val,r,rp,rc)
if bit.band(r,REASON_EFFECT)~=0 then return 0
else return val 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