Commit 177c81d1 authored by Tachibana's avatar Tachibana

E

parent 7ec177be
Pipeline #15628 passed with stages
in 28 minutes and 55 seconds
......@@ -28,12 +28,12 @@ function cm.spfilter(c)
return c:IsRace(RACE_MACHINE) and c:IsAbleToHand() and c:IsLevelBelow(3)
end
function cm.gvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and cm.gvfilter(chkc) end
if chk==0 then return ft>0 and Duel.IsExistingTarget(cm.gvfilter,tp,LOCATION_MZONE,0,1,nil)
local ft=Duel.GetLocationCount(tp,LOCATION_ONFIELD)
if chkc then return chkc:IsLocation(LOCATION_ONFIELD) and cm.gvfilter(chkc) end
if chk==0 then return ft>0 and Duel.IsExistingTarget(cm.gvfilter,tp,LOCATION_ONFIELD,0,1,nil)
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectTarget(tp,cm.gvfilter,tp,LOCATION_MZONE,0,1,1,nil)
local g=Duel.SelectTarget(tp,cm.gvfilter,tp,LOCATION_ONFIELD,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,1,0,0)
end
function cm.gvop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -30,11 +30,11 @@ function cm.gvfilter(c)
return c:IsFaceup() and c:GetType()==TYPE_TRAP+TYPE_CONTINUOUS and c:IsSetCard(0x5a2)
end
function cm.gvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and cm.gvfilter(chkc) end
if chk==0 then return ft>0 and Duel.IsExistingTarget(cm.gvfilter,tp,LOCATION_MZONE,0,1,nil) end
local ft=Duel.GetLocationCount(tp,LOCATION_ONFIELD)
if chkc then return chkc:IsLocation(LOCATION_ONFIELD) and cm.gvfilter(chkc) end
if chk==0 then return ft>0 and Duel.IsExistingTarget(cm.gvfilter,tp,LOCATION_ONFIELD,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectTarget(tp,cm.gvfilter,tp,LOCATION_MZONE,0,1,1,nil)
local g=Duel.SelectTarget(tp,cm.gvfilter,tp,LOCATION_ONFIELD,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,1,0,0)
end
function cm.gvop(e,tp,eg,ep,ev,re,r,rp)
......@@ -55,6 +55,7 @@ function cm.gvop(e,tp,eg,ep,ev,re,r,rp)
end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
if chkc then return chkc:IsOnField() end
local xg=nil
if not e:GetHandler():IsStatus(STATUS_EFFECT_ENABLED) then xg=e:GetHandler() end
......
......@@ -25,11 +25,11 @@ function cm.gvfilter(c)
return c:IsFaceup() and c:GetType()==TYPE_TRAP+TYPE_CONTINUOUS and c:IsSetCard(0x5a2)
end
function cm.gvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and cm.gvfilter(chkc) end
if chk==0 then return ft>0 and Duel.IsExistingTarget(cm.gvfilter,tp,LOCATION_MZONE,0,1,nil) end
local ft=Duel.GetLocationCount(tp,LOCATION_ONFIELD)
if chkc then return chkc:IsLocation(LOCATION_ONFIELD) and cm.gvfilter(chkc) end
if chk==0 then return ft>0 and Duel.IsExistingTarget(cm.gvfilter,tp,LOCATION_ONFIELD,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectTarget(tp,cm.gvfilter,tp,LOCATION_MZONE,0,1,1,nil)
local g=Duel.SelectTarget(tp,cm.gvfilter,tp,LOCATION_ONFIELD,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,1,0,0)
end
function cm.gvop(e,tp,eg,ep,ev,re,r,rp)
......
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