Commit 25ead0a8 authored by 未闻皂名's avatar 未闻皂名

2025/10/24 bug修复

parent e67ef7e7
Pipeline #41251 passed with stages
in 10 minutes and 9 seconds
...@@ -17,7 +17,7 @@ function cm.exfilter(c) ...@@ -17,7 +17,7 @@ function cm.exfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsType(TYPE_SPELL+TYPE_TRAP)
end end
function cm.thfilter(c) function cm.thfilter(c)
return c:GetType()==TYPE_EQUIP+TYPE_SPELL and c:IsAbleToHand() return c:IsType(TYPE_EQUIP) and c:IsAbleToHand()
end end
function cm.condition(e,tp,eg,ep,ev,re,r,rp) function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return RD.IsSummonTurn(e:GetHandler()) return RD.IsSummonTurn(e:GetHandler())
......
...@@ -46,5 +46,5 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,5 +46,5 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.aclimit(e,re,tp) function cm.aclimit(e,re,tp)
local tc=re:GetHandler() local tc=re:GetHandler()
return re:IsActiveType(TYPE_SPELL) and tc:GetType()==TYPE_SPELL return re:IsActiveType(TYPE_SPELL) and RD.IsNormalSpell(tc)
end end
\ No newline at end of file
...@@ -14,7 +14,7 @@ function cm.initial_effect(c) ...@@ -14,7 +14,7 @@ function cm.initial_effect(c)
end end
--Destroy --Destroy
function cm.costfilter(c) function cm.costfilter(c)
return c:IsFaceup() and c:GetType()==TYPE_EQUIP+TYPE_SPELL and c:IsAbleToGraveAsCost() return c:IsFaceup() and c:IsType(TYPE_EQUIP) and c:IsAbleToGraveAsCost()
end end
function cm.desfilter(c) function cm.desfilter(c)
return c:IsFaceup() and c:IsLevelBelow(8) return c:IsFaceup() and c:IsLevelBelow(8)
......
...@@ -21,7 +21,7 @@ function cm.desfilter(c) ...@@ -21,7 +21,7 @@ function cm.desfilter(c)
return c:IsFaceup() return c:IsFaceup()
end end
function cm.thfilter(c) function cm.thfilter(c)
return c:GetType()==TYPE_EQUIP+TYPE_SPELL and c:IsAbleToHand() return c:IsType(TYPE_EQUIP) and c:IsAbleToHand()
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)
......
...@@ -50,6 +50,6 @@ cm.indval=RD.ValueEffectIndesType(0,TYPE_SPELL) ...@@ -50,6 +50,6 @@ cm.indval=RD.ValueEffectIndesType(0,TYPE_SPELL)
--Cannot Activate --Cannot Activate
function cm.limit(e,re,tp) function cm.limit(e,re,tp)
local tc=re:GetHandler() local tc=re:GetHandler()
return tc:GetType()==TYPE_SPELL and RD.IsLegendCard(tc) return tc:IsType(TYPE_SPELL) and RD.IsLegendCard(tc)
and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL)
end end
\ No newline at end of file
...@@ -23,7 +23,7 @@ function cm.spcon(e,c) ...@@ -23,7 +23,7 @@ function cm.spcon(e,c)
end end
--To Deck --To Deck
function cm.costfilter(c) function cm.costfilter(c)
return c:IsFaceup() and c:GetType()==TYPE_EQUIP+TYPE_SPELL and c:IsAbleToGraveAsCost() return c:IsFaceup() and c:IsType(TYPE_EQUIP) and c:IsAbleToGraveAsCost()
end end
function cm.tdfilter(c) function cm.tdfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToDeck() return c:IsType(TYPE_MONSTER) and c:IsAbleToDeck()
......
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