Commit fbd3d430 authored by wind2009's avatar wind2009

Fix 創神のヴァルモニカ

parent 464e3854
...@@ -53,7 +53,7 @@ function s.atkcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,7 +53,7 @@ function s.atkcon(e,tp,eg,ep,ev,re,r,rp)
return ct>5 return ct>5
end end
function s.atktg(e,c) function s.atktg(e,c)
return c:IsSetCard(0x1a3) return c:IsSetCard(0x1a3) and c:IsType(TYPE_LINK)
end end
function s.spcon(e,tp,eg,ep,ev,re,r,rp) function s.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(Card.IsSummonPlayer,1,e:GetHandler(),1-tp) return eg:IsExists(Card.IsSummonPlayer,1,e:GetHandler(),1-tp)
...@@ -80,13 +80,13 @@ function s.ctfilter(c) ...@@ -80,13 +80,13 @@ function s.ctfilter(c)
return c:IsFaceup() and c:IsCanAddCounter(0x6a,1) and c:GetCounter(0x6a)<3 return c:IsFaceup() and c:IsCanAddCounter(0x6a,1) and c:GetCounter(0x6a)<3
end end
function s.coutg(e,tp,eg,ep,ev,re,r,rp,chk) function s.coutg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.ctfilter,tp,LOCATION_ONFIELD,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(s.ctfilter,tp,LOCATION_PZONE,0,1,nil) end
local g=Duel.GetMatchingGroup(s.ctfilter,tp,0,LOCATION_ONFIELD,nil) local g=Duel.GetMatchingGroup(s.ctfilter,tp,0,LOCATION_PZONE,nil)
Duel.SetOperationInfo(0,CATEGORY_COUNTER,g,1,0,0x6a) Duel.SetOperationInfo(0,CATEGORY_COUNTER,g,1,0,0x6a)
end end
function s.couop(e,tp,eg,ep,ev,re,r,rp) function s.couop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local tc=Duel.SelectMatchingCard(tp,s.ctfilter,tp,LOCATION_ONFIELD,0,1,1,nil):GetFirst() local tc=Duel.SelectMatchingCard(tp,s.ctfilter,tp,LOCATION_PZONE,0,1,1,nil):GetFirst()
if tc then if tc then
local ct=3-tc:GetCounter(0x6a) local ct=3-tc:GetCounter(0x6a)
tc:AddCounter(0x6a,ct) tc:AddCounter(0x6a,ct)
......
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