Commit 2ae59b91 authored by 未闻皂名's avatar 未闻皂名

2021/12/20 海豚反击调整

parent 1f1604a9
...@@ -32,7 +32,8 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -32,7 +32,8 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoDeck(g,nil,2,REASON_COST) Duel.SendtoDeck(g,nil,2,REASON_COST)
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil)
and Duel.IsPlayerCanDraw(tp,1) end
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end end
...@@ -48,9 +49,10 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,9 +49,10 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
sg=mg sg=mg
end end
Duel.HintSelection(sg) Duel.HintSelection(sg)
if Duel.Destroy(sg,REASON_EFFECT)~=0 and Duel.IsPlayerCanDraw(tp,1) then Duel.Destroy(sg,REASON_EFFECT)
local tc=Duel.GetDecktopGroup(tp,1):GetFirst() local tc=Duel.GetDecktopGroup(tp,1):GetFirst()
Duel.Draw(tp,1,REASON_EFFECT) Duel.Draw(tp,1,REASON_EFFECT)
if tc then
Duel.ConfirmCards(1-tp,tc) Duel.ConfirmCards(1-tp,tc)
if tc:IsCode(list[1],list[2]) then if tc:IsCode(list[1],list[2]) then
Duel.Damage(1-tp,500,REASON_EFFECT) Duel.Damage(1-tp,500,REASON_EFFECT)
......
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