Commit 7638737d authored by Tachibana's avatar Tachibana

得得得得得

parent c75c8a7f
Pipeline #13193 passed with stages
in 27 minutes and 23 seconds
......@@ -87,7 +87,7 @@ function cm.dotg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,nil,1,0,0)
end
function cm.activate2(e,tp,eg,ep,ev,re,r,rp)
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 then
if Duel.IsExistingMatchingCard(cm.spcheck,tp,LOCATION_GRAVE,0,1,nil,e,tp) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
......
......@@ -61,7 +61,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tc=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(cm.spfilter),tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp):GetFirst()
if tc and Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)~=0 and tc:IsLocation(LOCATION_MZONE) and tc:IsControler(tp) and tc:IsControlerCanBeChanged() and Duel.SelectYesNo(p,aux.Stringid(m,1)) then
if tc and Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)~=0 and tc:IsLocation(LOCATION_MZONE) and tc:IsControler(tp) and tc:IsControlerCanBeChanged() and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
if Duel.GetControl(tc,1-tp)==0 then return end
local reg=Card.RegisterEffect
Card.RegisterEffect=function(sc,se,bool)
......@@ -83,7 +83,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
Card.RegisterEffect=reg
local te=tc.mgg
if not te or not Duel.SelectYesNo(p,aux.Stringid(m,2)) then return end
if not te or not Duel.SelectYesNo(tp,aux.Stringid(m,2)) then return end
tc:RegisterFlagEffect(m,RESET_EVENT+RESETS_STANDARD,0,0)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
......@@ -98,7 +98,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.ctfilter(c)
return c:IsFaceup() and c:IsControlerCanBeChanged()
return c:IsControlerCanBeChanged()
end
function cm.cttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local g=Duel.GetMatchingGroup(cm.ctfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
......
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