Commit 53b0d389 authored by wind2009's avatar wind2009

Fix 絢嵐たる海霊ヴァルルーン

parent ba47f4f0
Pipeline #41442 passed with stages
in 2 minutes and 22 seconds
...@@ -87,9 +87,20 @@ function s.mvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -87,9 +87,20 @@ function s.mvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function s.mvop(e,tp,eg,ep,ev,re,r,rp) function s.mvop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
local sg=g:Filter(Card.IsRelateToEffect,nil,e):Filter(s.mvfilter2,nil,e) local tg=g:Filter(Card.IsRelateToEffect,nil,e):Filter(s.mvfilter2,nil,e)
if sg:FilterCount(s.isowner,nil,0)>Duel.GetLocationCount(0,LOCATION_SZONE) or sg:FilterCount(s.isowner,nil,1)>Duel.GetLocationCount(1,LOCATION_SZONE) then return end local pg=Group.CreateGroup()
for tc in aux.Next(sg) do for p in aux.TurnPlayers() do
local sg=tg:Filter(s.isowner,nil,p)
local ct=Duel.GetLocationCount(p,LOCATION_SZONE)
if sg:GetCount()<=ct then
pg:Merge(sg)
elseif ct>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD)
local tpg=sg:Select(tp,ct,ct,nil)
pg:Merge(tpg)
end
end
for tc in aux.Next(pg) do
Duel.MoveToField(tc,tp,tc:GetOwner(),LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(tc,tp,tc:GetOwner(),LOCATION_SZONE,POS_FACEUP,true)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetCode(EFFECT_CHANGE_TYPE) e1:SetCode(EFFECT_CHANGE_TYPE)
...@@ -99,6 +110,10 @@ function s.mvop(e,tp,eg,ep,ev,re,r,rp) ...@@ -99,6 +110,10 @@ function s.mvop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS) e1:SetValue(TYPE_SPELL+TYPE_CONTINUOUS)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
local gg=tg-pg
if gg:GetCount()>0 then
Duel.SendtoGrave(gg,REASON_RULE)
end
end end
function s.setcon(e,tp,eg,ep,ev,re,r,rp) function s.setcon(e,tp,eg,ep,ev,re,r,rp)
return re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_QUICKPLAY) return re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_QUICKPLAY)
......
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