Commit 5702bc9b authored by 未闻皂名's avatar 未闻皂名

2022/12/2 更新效果调整

parent 80352ab5
...@@ -20,10 +20,11 @@ end ...@@ -20,10 +20,11 @@ end
function cm.adfilter(c,attr) function cm.adfilter(c,attr)
return c:IsFaceup() and c:IsAttribute(attr) return c:IsFaceup() and c:IsAttribute(attr)
end end
cm.cost=RD.CostSendHandToGrave(cm.costfilter,1,1,nil,Group.GetFirst) cm.cost=RD.CostSendHandToGrave(cm.costfilter,1,1,function(g)
return g:GetFirst():GetLevel()
end)
function cm.operation(e,tp,eg,ep,ev,re,r,rp) function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local cc=e:GetLabelObject() local down=e:GetLabel()*-300
local down=cc:GetLevel()*-300
local g=Duel.GetMatchingGroup(cm.adfilter,tp,0,LOCATION_MZONE,nil,cc:GetAttribute()) local g=Duel.GetMatchingGroup(cm.adfilter,tp,0,LOCATION_MZONE,nil,cc:GetAttribute())
g:ForEach(function(tc) g:ForEach(function(tc)
RD.AttachAtkDef(e,tc,down,down,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) RD.AttachAtkDef(e,tc,down,down,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
......
...@@ -15,7 +15,9 @@ end ...@@ -15,7 +15,9 @@ end
--Indes --Indes
cm.indval=RD.ValueEffectIndesType(0,TYPE_TRAP) cm.indval=RD.ValueEffectIndesType(0,TYPE_TRAP)
function cm.filter(c,tp) function cm.filter(c,tp)
return c:IsFaceup() and c:IsLevelAbove(5) and c:IsRace(RACE_MACHINE) and RD.IsCanAttachEffectIndes(c,tp,cm.indval) return c:IsFaceup() and c:IsLevelAbove(5) and c:IsRace(RACE_MACHINE)
and RD.IsCanAttachEffectIndes(c,tp,cm.indval)
and (not c:IsAttribute(ATTRIBUTE_LIGHT) or Duel.IsPlayerCanDraw(tp,1))
end end
cm.cost=RD.CostSendHandToGrave(Card.IsAbleToGraveAsCost,1,1) cm.cost=RD.CostSendHandToGrave(Card.IsAbleToGraveAsCost,1,1)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -26,7 +26,11 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -26,7 +26,11 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
end end
cm.cost=RD.CostSendHandToGrave(cm.costfilter,1,1) cm.cost=RD.CostSendHandToGrave(cm.costfilter,1,1)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGrave() and Duel.IsPlayerCanDraw(tp,1) end local ct=1
if not Duel.IsExistingMatchingCard(cm.exfilter,tp,LOCATION_GRAVE,0,2,nil) then
ct=2
end
if chk==0 then return e:GetHandler():IsAbleToGrave() and Duel.IsPlayerCanDraw(tp,ct) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
end end
......
...@@ -14,7 +14,7 @@ function cm.initial_effect(c) ...@@ -14,7 +14,7 @@ function cm.initial_effect(c)
end end
--Discard Deck --Discard Deck
function cm.filter(c) function cm.filter(c)
return c:IsFaceup() and c:IsLevelBelow(8) return c:IsFaceup() and c:IsLevelBelow(8) and c:GetFlagEffect(m)==0
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,1) end if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,1) end
...@@ -34,6 +34,9 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -34,6 +34,9 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetCondition(cm.atkcon) e1:SetCondition(cm.atkcon)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_OPPO_TURN) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_OPPO_TURN)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
if not tc:IsImmuneToEffect(e) then
tc:RegisterFlagEffect(m,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_OPPO_TURN,0,1)
end
end) end)
end end
function cm.atkcon(e) function cm.atkcon(e)
......
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