Commit ff08984e authored by wind2009's avatar wind2009

21.16

parent b6a479d5
Pipeline #42593 passed with stages
in 3 minutes and 24 seconds
...@@ -91,7 +91,7 @@ add_script_diff: ...@@ -91,7 +91,7 @@ add_script_diff:
FIELDS: 'name,desc,overallString,picUrl' FIELDS: 'name,desc,overallString,picUrl'
GIT_DEPTH: '1000' GIT_DEPTH: '1000'
OUTPUT_FILENAME: test-release.json OUTPUT_FILENAME: test-release.json
REF_COMMIT: '21.14' # 更新的时候改这里,修改成上一个tag的版本号 REF_COMMIT: '21.15' # 更新的时候改这里,修改成上一个tag的版本号
script: script:
- apt update;apt -y install wget - apt update;apt -y install wget
- currentPath=$PWD - currentPath=$PWD
......
No preview for this file type
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
101304025 101304025
101304026 101304026
101304027 101304027
101304028
101304029 101304029
101304030 101304030
101304031 101304031
......
--WAKE CUP! クロ --WAKE CUP! クロ
CATEGORY_MSET =0x100000000 --包含盖放怪兽的效果
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
--to hand --to hand
...@@ -15,7 +16,7 @@ function s.initial_effect(c) ...@@ -15,7 +16,7 @@ function s.initial_effect(c)
--flip --flip
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1)) e2:SetDescription(aux.Stringid(id,1))
e2:SetCategory(CATEGORY_POSITION) e2:SetCategory(CATEGORY_POSITION+CATEGORY_MSET)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP+EFFECT_TYPE_TRIGGER_O)
e2:SetCountLimit(1,id+o) e2:SetCountLimit(1,id+o)
...@@ -29,6 +30,7 @@ function s.initial_effect(c) ...@@ -29,6 +30,7 @@ function s.initial_effect(c)
e3:SetType(EFFECT_TYPE_QUICK_O) e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_FREE_CHAIN) e3:SetCode(EVENT_FREE_CHAIN)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1,id+o*2) e3:SetCountLimit(1,id+o*2)
e3:SetTarget(s.postg2) e3:SetTarget(s.postg2)
...@@ -52,9 +54,15 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,9 +54,15 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
Duel.ShuffleHand(tp) if g:IsExists(Card.IsLocation,1,nil,LOCATION_HAND) then
Duel.BreakEffect() Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD)
Duel.DiscardHand(tp,nil,1,1,REASON_EFFECT+REASON_DISCARD) local dg=Duel.SelectMatchingCard(tp,Card.IsDiscardable,tp,LOCATION_HAND,0,1,1,nil,REASON_EFFECT)
Duel.ShuffleHand(tp)
if dg:GetCount()>0 then
Duel.BreakEffect()
Duel.SendtoGrave(dg,REASON_EFFECT+REASON_DISCARD)
end
end
end end
end end
function s.setfilter(c) function s.setfilter(c)
...@@ -85,4 +93,4 @@ function s.posop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,4 +93,4 @@ function s.posop2(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToChain() and tc:IsType(TYPE_MONSTER) and tc:IsFacedown() then if tc:IsRelateToChain() and tc:IsType(TYPE_MONSTER) and tc:IsFacedown() then
Duel.ChangePosition(tc,POS_FACEUP_DEFENSE) Duel.ChangePosition(tc,POS_FACEUP_DEFENSE)
end end
end end
\ No newline at end of file
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