Commit 2f86ec17 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c18700368.lua

parent 885d39ca
...@@ -32,18 +32,17 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -32,18 +32,17 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
if chk==0 then return Duel.IsExistingTarget(cm.rmfilter,tp,0,LOCATION_MZONE,1,nil) and Duel.IsExistingTarget(cm.spfilter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingTarget(cm.rmfilter,tp,0,LOCATION_MZONE,1,nil) and Duel.IsExistingTarget(cm.spfilter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g1=Duel.SelectTarget(tp,cm.spfilter,tp,LOCATION_MZONE,0,1,1,nil,e,tp) local g1=Duel.SelectTarget(tp,cm.spfilter,tp,LOCATION_MZONE,0,1,1,nil)
local g2=Duel.SelectTarget(tp,cm.rmfilter,tp,0,LOCATION_MZONE,1,1,nil) local g2=Duel.SelectTarget(tp,cm.rmfilter,tp,0,LOCATION_MZONE,1,1,nil)
g1:Merge(g2)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g1,1,tp,LOCATION_MZONE) Duel.SetOperationInfo(0,CATEGORY_TOHAND,g1,1,tp,LOCATION_MZONE)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g2,1,1-tp,LOCATION_MZONE) Duel.SetOperationInfo(0,CATEGORY_TOHAND,g1,1,1-tp,LOCATION_MZONE)
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 c=e:GetHandler() local c=e:GetHandler()
local ex1,tg1=Duel.GetOperationInfo(0,CATEGORY_TOHAND) local g=Duel.GetTargetsRelateToChain()
local ex2,tg2=Duel.GetOperationInfo(0,CATEGORY_TOHAND) for tc in aux.Next(g) do
if tg1:GetFirst():IsRelateToEffect(e) and tg2:GetFirst():IsRelateToEffect(e) and tg1:GetFirst():IsAttribute(ATTRIBUTE_WIND) then Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.SendtoHand(tg1,nil,REASON_EFFECT)
Duel.SendtoHand(tg2,nil,REASON_EFFECT)
end end
local ct=Duel.GetCurrentChain() local ct=Duel.GetCurrentChain()
if ct<2 then return end if ct<2 then return 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