Commit b7455273 authored by Amiya's avatar Amiya

刻魔修复

parent 2946775e
...@@ -27,7 +27,7 @@ function s.lcheck(g) ...@@ -27,7 +27,7 @@ function s.lcheck(g)
return g:IsExists(s.mfilter,1,nil) return g:IsExists(s.mfilter,1,nil)
end end
function s.mfilter(c) function s.mfilter(c)
return c:IsLinkRace(RACE_FIEND) and c:IsAttribute(ATTRIBUTE_LIGHT) return c:IsLinkRace(RACE_FIEND) and c:IsLinkAttribute(ATTRIBUTE_LIGHT)
end end
function s.filter0(c) function s.filter0(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToDeck() return c:IsType(TYPE_MONSTER) and c:IsAbleToDeck()
...@@ -99,7 +99,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -99,7 +99,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.eqfilter(c) function s.eqfilter(c)
return c:IsFaceup() and c:IsSetCard(0x2b0) and not c:IsType(TYPE_LINK) return c:IsFaceup() and c:IsRace(RACE_FIEND) and c:IsAttribute(ATTRIBUTE_LIGHT) and not c:IsType(TYPE_LINK)
end end
function s.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.eqfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.eqfilter(chkc) end
...@@ -113,7 +113,7 @@ end ...@@ -113,7 +113,7 @@ end
function s.eqop(e,tp,eg,ep,ev,re,r,rp) function s.eqop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsFaceup() and tc:IsRelateToEffect(e) and tc:IsControler(tp) then if c:IsRelateToEffect(e) and c:IsFaceup() and c:IsControler(tp) and tc:IsFaceup() and tc:IsRelateToEffect(e) and tc:IsControler(tp) then
if not Duel.Equip(tp,c,tc) then return end if not Duel.Equip(tp,c,tc) then return end
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
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