Commit 41add2b1 authored by 未闻皂名's avatar 未闻皂名

2025/9/29 通常魔法卡判定修复

parent fef5208e
Pipeline #40776 passed with stages
in 12 minutes and 47 seconds
-- Rush Duel 条件 -- Rush Duel 条件
RushDuel = RushDuel or {} RushDuel = RushDuel or {}
-- 条件: 卡片是通常魔法卡
function RushDuel.IsNormalSpell(card)
return card:GetType()==TYPE_SPELL or card:GetType()==TYPE_SPELL+TYPE_LEGEND
end
-- 条件: 卡片是否处于"极大模式" -- 条件: 卡片是否处于"极大模式"
function RushDuel.IsMaximumMode(card) function RushDuel.IsMaximumMode(card)
return card:IsLocation(LOCATION_MZONE) and card:IsSummonType(SUMMON_TYPE_MAXIMUM) and card:GetOverlayCount() > 0 return card:IsLocation(LOCATION_MZONE) and card:IsSummonType(SUMMON_TYPE_MAXIMUM) and card:GetOverlayCount() > 0
......
...@@ -19,7 +19,7 @@ function cm.initial_effect(c) ...@@ -19,7 +19,7 @@ function cm.initial_effect(c)
end end
--To Hand --To Hand
function cm.exfilter(c) function cm.exfilter(c)
return c:GetType()==TYPE_SPELL return RD.IsNormalSpell(tc)
end end
function cm.filter(c) function cm.filter(c)
return c:IsFacedown() and c:IsAbleToHand() return c:IsFacedown() and c:IsAbleToHand()
......
...@@ -20,6 +20,6 @@ end ...@@ -20,6 +20,6 @@ end
--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 not tc:IsCode(list[3]) and tc:GetType()==TYPE_SPELL return not tc:IsCode(list[3]) and RD.IsNormalSpell(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
...@@ -46,5 +46,6 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,5 +46,6 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
end) end)
end end
function cm.aclimit(e,re,tp,chk) function cm.aclimit(e,re,tp,chk)
return re:GetHandler():GetType()==TYPE_SPELL and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL) return RD.IsNormalSpell(re:GetHandler()) and re:IsHasType(EFFECT_TYPE_ACTIVATE)
and re:IsActiveType(TYPE_SPELL)
end end
\ No newline at end of file
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