Commit fd41701c authored by 未闻皂名's avatar 未闻皂名

2024/3/26 bug修复

parent 20396fab
Pipeline #26085 passed with stages
in 10 minutes and 34 seconds
...@@ -26,17 +26,16 @@ end ...@@ -26,17 +26,16 @@ 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 if chk==0 then
local ag=Duel.GetAttacker():GetAttackableTarget() local ag=Duel.GetAttacker():GetAttackableTarget()
local at=Duel.GetAttackTarget() return ag:GetCount()>1
return ag:IsExists(aux.TRUE,1,at)
end end
end end
function cm.activate(e,tp,eg,ep,ev,re,r,rp) function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local ag=Duel.GetAttacker():GetAttackableTarget() local ag=Duel.GetAttacker():GetAttackableTarget()
local at=Duel.GetAttackTarget() local at=Duel.GetAttackTarget()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTACKTARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTACKTARGET)
local g=ag:Select(tp,1,1,at) local g=ag:Select(tp,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc and Duel.ChangeAttackTarget(tc) then if tc and (tc==at or Duel.ChangeAttackTarget(tc)) then
local mg=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,0,nil) local mg=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,0,nil)
if mg:CheckSubGroup(cm.check,2,2) then if mg:CheckSubGroup(cm.check,2,2) then
RD.CanSelectAndDoAction(aux.Stringid(m,1),HINTMSG_DESTROY,nil,tp,0,LOCATION_MZONE,1,1,nil,function(sg) RD.CanSelectAndDoAction(aux.Stringid(m,1),HINTMSG_DESTROY,nil,tp,0,LOCATION_MZONE,1,1,nil,function(sg)
......
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