Commit 63840804 authored by wind2009's avatar wind2009

Fix 恋する乙女

parent 1fbdf3a0
Pipeline #40318 passed with stages
in 11 minutes and 9 seconds
...@@ -31,7 +31,7 @@ function s.initial_effect(c) ...@@ -31,7 +31,7 @@ function s.initial_effect(c)
e4:SetOperation(s.ccop) e4:SetOperation(s.ccop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
s.counter_add_list={0x106f} s.counter_add_list={0x1071}
function s.atklimit(e,c) function s.atklimit(e,c)
return c==e:GetHandler() return c==e:GetHandler()
end end
...@@ -40,10 +40,10 @@ function s.cccon(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,10 +40,10 @@ function s.cccon(e,tp,eg,ep,ev,re,r,rp)
return c:IsRelateToBattle() and c:IsStatus(STATUS_OPPO_BATTLE) return c:IsRelateToBattle() and c:IsStatus(STATUS_OPPO_BATTLE)
end end
function s.cfilter(c) function s.cfilter(c)
return c:IsControlerCanBeChanged() and c:GetCounter(0x106f)>0 return c:IsControlerCanBeChanged() and c:GetCounter(0x1071)>0
end end
function s.cctg(e,tp,eg,ep,ev,re,r,rp,chk) function s.cctg(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=Duel.IsExistingMatchingCard(Card.IsCanAddCounter,tp,0,LOCATION_MZONE,1,nil,0x106f,1) local b1=Duel.IsExistingMatchingCard(Card.IsCanAddCounter,tp,0,LOCATION_MZONE,1,nil,0x1071,1)
local b2=Duel.IsExistingMatchingCard(s.cfilter,tp,0,LOCATION_MZONE,1,nil) local b2=Duel.IsExistingMatchingCard(s.cfilter,tp,0,LOCATION_MZONE,1,nil)
if chk==0 then return b1 or b2 end if chk==0 then return b1 or b2 end
local op=0 local op=0
...@@ -55,7 +55,7 @@ function s.cctg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -55,7 +55,7 @@ function s.cctg(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(op) e:SetLabel(op)
if op==1 then if op==1 then
e:SetCategory(CATEGORY_COUNTER) e:SetCategory(CATEGORY_COUNTER)
local g=Duel.GetMatchingGroup(Card.IsCanAddCounter,tp,0,LOCATION_MZONE,nil,0x106f,1) local g=Duel.GetMatchingGroup(Card.IsCanAddCounter,tp,0,LOCATION_MZONE,nil,0x1071,1)
Duel.SetOperationInfo(0,CATEGORY_COUNTER,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_COUNTER,g,1,0,0)
elseif op==2 then elseif op==2 then
e:SetCategory(CATEGORY_CONTROL) e:SetCategory(CATEGORY_CONTROL)
...@@ -66,11 +66,11 @@ end ...@@ -66,11 +66,11 @@ end
function s.ccop(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.ccop(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if e:GetLabel()==1 then if e:GetLabel()==1 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectMatchingCard(tp,Card.IsCanAddCounter,tp,0,LOCATION_MZONE,1,1,nil,0x106f,1) local g=Duel.SelectMatchingCard(tp,Card.IsCanAddCounter,tp,0,LOCATION_MZONE,1,1,nil,0x1071,1)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.HintSelection(g) Duel.HintSelection(g)
tc:AddCounter(0x106f,1) tc:AddCounter(0x1071,1)
end end
else else
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL)
......
#The first line is used for comment #The first line is used for comment
!counter 0x106f 少女指示物 !counter 0x1071 少女指示物
!counter 0x70 龋齿指示物
!counter 0x71 盘子指示物
!counter 0x73 纠罪指示物 !counter 0x73 纠罪指示物
!setname 0x2cf 树熊 !setname 0x2cf 树熊
!setname 0x2d0 死伟王
!setname 0x2d1 绚岚
!setname 0x2d2 奏悦机组
!setname 0x2d3 终刻
!setname 0x2d4 不可见之手 !setname 0x2d4 不可见之手
!setname 0x2d5 纠罪巧 !setname 0x2d5 纠罪巧
!setname 0x2d6 杀手级调整曲 !setname 0x2d6 杀手级调整曲
......
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