Commit b5af840f authored by Huangnan's avatar Huangnan

Update c101202041.lua

parent fd0467be
Pipeline #23081 canceled with stages
--重铠装-暗黑骑士枪兵
--FA-ダーク・ナイト・ランサー
--Script by Dio0
local s,id,o=GetID()
function s.initial_effect(c)
--xyz summon
......@@ -30,11 +31,11 @@ function s.initial_effect(c)
e3:SetCode(EVENT_EQUIP)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1)
e3:SetCondition(s.eqcon)
e3:SetTarget(s.eqtg)
e3:SetOperation(s.eqop)
c:RegisterEffect(e3)
end
function s.ovfilter(c)
return c:IsFaceup() and (c:IsRank(5) or c:IsRank(6))
end
......@@ -42,11 +43,9 @@ function s.xyzop(e,tp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,id)==0 end
Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,EFFECT_FLAG_OATH,1)
end
function s.atkval(e,c)
return (c:GetOverlayCount()+c:GetEquipCount())*300
end
function s.thfilter(c)
return c:IsSetCard(0x73) and c:IsAbleToHand()
end
......@@ -63,6 +62,13 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(tc,nil,REASON_EFFECT)
end
end
function s.eqcfilter(c,tp)
local tc=c:GetEquipTarget()
return tc and tc:IsControler(tp)
end
function s.eqcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.eqcfilter,1,nil,tp)
end
function s.ovfilter2(c)
return c:IsCanOverlay()
end
......@@ -87,4 +93,3 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp)
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