Commit 5bbeba1c authored by Nemo Ma's avatar Nemo Ma

fix

parent ab87e4ac
......@@ -48,7 +48,7 @@ end
function cm.sprtg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local g=Duel.GetMatchingGroup(cm.mzfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local sg=g:SelectSubGroup(tp,cm.fselect,Duel.IsSummonCancelable(),4,#g)
local sg=g:SelectSubGroup(tp,cm.fselect,Duel.IsSummonCancelable(),2,#g)
if sg and sg:GetSum(Card.GetLevel)%5==0 then
sg:KeepAlive()
e:SetLabelObject(sg)
......
......@@ -133,7 +133,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect()
Duel.SpecialSummon(tc,SUMMON_TYPE_FUSION,tp,tp,false,false,POS_FACEUP)
else
local mat2=Duel.SelectFusionMaterial(tp,tc,mg2,nil,chkf)
local mat2=Duel.SelectFusionMaterial(tp,tc,mg3,nil,chkf)
local fop=ce:GetOperation()
fop(ce,e,tp,tc,mat2)
end
......
......@@ -32,7 +32,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>0 end
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local ct=math.ceil(Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)/2)
local ct=math.floor(Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)/2)
if ct<1 then return end
local g=Duel.GetDecktopGroup(tp,ct)
Duel.ConfirmCards(tp,g)
......@@ -65,7 +65,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect()
Duel.SpecialSummon(tc,SUMMON_TYPE_FUSION,tp,tp,false,false,POS_FACEUP)
else
local mat2=Duel.SelectFusionMaterial(tp,tc,mg2,nil,chkf)
local mat2=Duel.SelectFusionMaterial(tp,tc,mg3,nil,chkf)
local fop=ce:GetOperation()
fop(ce,e,tp,tc,mat2)
end
......
......@@ -117,7 +117,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
if hg:GetCount()>0 and Duel.SendtoHand(hg,tp,REASON_EFFECT)>0 and hg:GetFirst():IsLocation(LOCATION_HAND) then
Duel.ConfirmCards(1-tp,hg)
local dis=1<<c:GetSequence()
if Duel.Remove(c,0,REASON_EFFECT+REASON_TEMPORARY)>0 and c:IsLocation(LOCATION_REMOVED) then
if c:IsRelateToEffect(e) and Duel.Remove(c,0,REASON_EFFECT+REASON_TEMPORARY)>0 and c:IsLocation(LOCATION_REMOVED) then
if SNNM.DisMZone(tp)&dis>0 then return end
local zone=dis
if tp==1 then dis=((dis&0xffff)<<16)|((dis>>16)&0xffff) end
......
......@@ -82,7 +82,7 @@ function cm.discon2(e,tp,eg,ep,ev,re,r,rp)
return SNNM.DisMZone(tp)&0x1f>0
end
function cm.disfilter(c)
return aux.NegateAnyFilter(c) and c:IsStatus(STATUS_EFFECT_ENABLED)
return aux.NegateAnyFilter(c) and c:IsStatus(STATUS_EFFECT_ENABLED) and not c:IsStatus(STATUS_LEAVE_CONFIRMED)
end
function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local b1=SNNM.RinnaZone(tp,Duel.GetMatchingGroup(function(c)return c:GetSequence()<5 and c:IsAbleToRemove()end,tp,LOCATION_MZONE,0,nil))>0 and Duel.IsExistingMatchingCard(cm.disfilter,tp,0,LOCATION_ONFIELD,1,nil)
......
......@@ -3,6 +3,8 @@ local m=60002027
local cm=_G["c"..m]
cm.name="深溟之大剑喻 亚当"
function cm.initial_effect(c)
--pendulum summon
aux.EnablePendulumAttribute(c)
--summon with s/t
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -3,6 +3,8 @@ local m=60002028
local cm=_G["c"..m]
cm.name="血影之大剑喻 莉莉安"
function cm.initial_effect(c)
--pendulum summon
aux.EnablePendulumAttribute(c)
--summon with s/t
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -3,6 +3,8 @@ local m=60002029
local cm=_G["c"..m]
cm.name="明灯之大剑喻 底比里斯"
function cm.initial_effect(c)
--pendulum summon
aux.EnablePendulumAttribute(c)
--summon with s/t
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -21,6 +21,8 @@ function cm.initial_effect(c)
e3:SetCategory(CATEGORY_ATKCHANGE)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_GRAVE)
e3:SetCountLimit(1,m+10000000)
e3:SetCost(aux.bfgcost)
e3:SetTarget(cm.tdtg)
e3:SetOperation(cm.tdop)
c:RegisterEffect(e3)
......
......@@ -20,7 +20,7 @@ function cm.filter(c,e,tp)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c34611551mIAL_SUMMON,nil,1,tp,LOCATION_DECK)
and Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
......@@ -28,6 +28,5 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if #g>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENSE)
end
end
end
end
\ No newline at end of file
......@@ -43,7 +43,7 @@ end
function c79078004.thop(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp,aux.TRUE,tp,0,LOCATION_MZONE,1,1,nil)
local g=Duel.SelectMatchingCard(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil)
if g:GetCount()>0 then
Duel.HintSelection(g)
if Duel.Destroy(g,REASON_EFFECT)~=0 then
......
......@@ -60,8 +60,8 @@ function c9910967.gselect(sg,lv)
end
function c9910967.spfilter(c,e,tp,g)
local clv=c:GetLevel()
local b1=c:IsSetCard(0x5954) and clv>1 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
and not c:IsPublic()
local b1=c:IsSetCard(0x5954) and clv>1 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and not c:IsPublic()
if not b1 then return false end
aux.GCheckAdditional=c9910967.gcheck(clv)
local b2=g:CheckSubGroup(c9910967.gselect,1,#g,clv)
......
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