Commit 721735ae authored by wind2009's avatar wind2009

Fix クロスロードランナー

parent 51a96cad
Pipeline #40371 passed with stages
in 3 minutes and 59 seconds
......@@ -91,7 +91,7 @@ add_script_diff:
FIELDS: 'name,desc,overallString,picUrl'
GIT_DEPTH: '1000'
OUTPUT_FILENAME: test-release.json
REF_COMMIT: '17.1' # 更新的时候改这里,修改成上一个tag的版本号
REF_COMMIT: '17.2' # 更新的时候改这里,修改成上一个tag的版本号
script:
- apt update;apt -y install wget
- currentPath=$PWD
......
No preview for this file type
#created by ygomobile
100244001
100244002
100244003
100244004
100244005
100244032
......
--
--クロスロードランナー
local s,id,o=GetID()
function s.initial_effect(c)
aux.AddCodeList(c,60800381)
......@@ -27,7 +27,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function s.pcfilter(c)
return c:IsFaceup() and (c:IsCode(60800381) or aux.IsCodeListed(c,60800381))
return c:IsFaceup() and (c:IsCode(60800381) or c:IsType(TYPE_MONSTER) and aux.IsCodeListed(c,60800381))
end
function s.posfilter(c)
return c:IsAttackPos() and c:IsCanChangePosition() and c:IsAttackAbove(1900)
......@@ -42,7 +42,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(LOCATION_REMOVED)
e1:SetReset(RESET_EVENT+RESETS_REDIRECT)
c:RegisterEffect(e1)
if Duel.IsExistingMatchingCard(s.pcfilter,tp,LOCATION_MZONE,0,1,c)
if Duel.IsExistingMatchingCard(s.pcfilter,tp,LOCATION_ONFIELD,0,1,c)
and Duel.IsExistingMatchingCard(s.posfilter,tp,0,LOCATION_MZONE,1,nil)
and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
local g=Duel.GetMatchingGroup(s.posfilter,tp,0,LOCATION_MZONE,nil)
......@@ -63,4 +63,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end
function s.splimit(e,c)
return not c:IsType(TYPE_SYNCHRO) and c:IsLocation(LOCATION_EXTRA)
end
\ No newline at end of file
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