Commit b5af840f authored by Huangnan's avatar Huangnan

Update c101202041.lua

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