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)
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function cm.thfilter(c)
return c:GetType()==TYPE_EQUIP+TYPE_SPELL and c:IsAbleToHand()
return c:IsType(TYPE_EQUIP) and c:IsAbleToHand()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return RD.IsSummonTurn(e:GetHandler())
......
......@@ -46,5 +46,5 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
end
function cm.aclimit(e,re,tp)
local tc=re:GetHandler()
return re:IsActiveType(TYPE_SPELL) and tc:GetType()==TYPE_SPELL
return re:IsActiveType(TYPE_SPELL) and RD.IsNormalSpell(tc)
end
\ No newline at end of file
......@@ -14,7 +14,7 @@ function cm.initial_effect(c)
end
--Destroy
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
function cm.desfilter(c)
return c:IsFaceup() and c:IsLevelBelow(8)
......
......@@ -21,7 +21,7 @@ function cm.desfilter(c)
return c:IsFaceup()
end
function cm.thfilter(c)
return c:GetType()==TYPE_EQUIP+TYPE_SPELL and c:IsAbleToHand()
return c:IsType(TYPE_EQUIP) and c:IsAbleToHand()
end
cm.cost=RD.CostSendHandToGrave(Card.IsAbleToGraveAsCost,1,1)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -50,6 +50,6 @@ cm.indval=RD.ValueEffectIndesType(0,TYPE_SPELL)
--Cannot Activate
function cm.limit(e,re,tp)
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)
end
\ No newline at end of file
......@@ -23,7 +23,7 @@ function cm.spcon(e,c)
end
--To Deck
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
function cm.tdfilter(c)
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