Commit f8edc1b8 authored by zengsxing's avatar zengsxing

fix 19-21

适配调和支援士
parent 3f46e74c
Pipeline #33286 passed with stages
in 3 minutes and 1 second
...@@ -63,7 +63,7 @@ function s.goal(g,tp,lv,syncard,tuc) ...@@ -63,7 +63,7 @@ function s.goal(g,tp,lv,syncard,tuc)
if Duel.GetLocationCountFromEx(tp,tp,g,syncard)<=0 then return false end if Duel.GetLocationCountFromEx(tp,tp,g,syncard)<=0 then return false end
if tuc:IsHasEffect(EFFECT_HAND_SYNCHRO) and g:IsExists(Card.IsLocation,2,tuc,LOCATION_HAND) then return false end if tuc:IsHasEffect(EFFECT_HAND_SYNCHRO) and g:IsExists(Card.IsLocation,2,tuc,LOCATION_HAND) then return false end
local lg=g:__add(tuc) local lg=g:__add(tuc)
return lg:GetSum(s.val,syncard)==lv return lg:CheckWithSumEqual(s.val,lv,#lg,#lg,syncard)
end end
function s.LSynCondition(e,c,tuner,mg,min,max) function s.LSynCondition(e,c,tuner,mg,min,max)
if c==nil then return true end if c==nil then return true end
......
...@@ -63,7 +63,7 @@ function s.goal(g,tp,lv,syncard,tuc) ...@@ -63,7 +63,7 @@ function s.goal(g,tp,lv,syncard,tuc)
if Duel.GetLocationCountFromEx(tp,tp,g,syncard)<=0 then return false end if Duel.GetLocationCountFromEx(tp,tp,g,syncard)<=0 then return false end
if tuc:IsHasEffect(EFFECT_HAND_SYNCHRO) and g:IsExists(Card.IsLocation,2,tuc,LOCATION_HAND) then return false end if tuc:IsHasEffect(EFFECT_HAND_SYNCHRO) and g:IsExists(Card.IsLocation,2,tuc,LOCATION_HAND) then return false end
local lg=g:__add(tuc) local lg=g:__add(tuc)
return lg:GetSum(s.val,syncard)==lv return lg:CheckWithSumEqual(s.val,lv,#lg,#lg,syncard)
end end
function s.LSynCondition(e,c,tuner,mg,min,max) function s.LSynCondition(e,c,tuner,mg,min,max)
if c==nil then return true end if c==nil then return true end
......
...@@ -63,7 +63,7 @@ function s.goal(g,tp,lv,syncard,tuc) ...@@ -63,7 +63,7 @@ function s.goal(g,tp,lv,syncard,tuc)
if Duel.GetLocationCountFromEx(tp,tp,g,syncard)<=0 then return false end if Duel.GetLocationCountFromEx(tp,tp,g,syncard)<=0 then return false end
if tuc:IsHasEffect(EFFECT_HAND_SYNCHRO) and g:IsExists(Card.IsLocation,2,tuc,LOCATION_HAND) then return false end if tuc:IsHasEffect(EFFECT_HAND_SYNCHRO) and g:IsExists(Card.IsLocation,2,tuc,LOCATION_HAND) then return false end
local lg=g:__add(tuc) local lg=g:__add(tuc)
return lg:GetSum(s.val,syncard)==lv return lg:CheckWithSumEqual(s.val,lv,#lg,#lg,syncard)
end end
function s.LSynCondition(e,c,tuner,mg,min,max) function s.LSynCondition(e,c,tuner,mg,min,max)
if c==nil then return true end if c==nil then return true end
......
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