Commit 9d4e6445 authored by REIKAI's avatar REIKAI 💬

fix

parent 512a016e
Pipeline #23754 passed with stages
in 22 minutes and 40 seconds
No preview for this file type
...@@ -19,7 +19,7 @@ function cm.initial_effect(c) ...@@ -19,7 +19,7 @@ function cm.initial_effect(c)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1) e2:SetCountLimit(1,m)
e2:SetCost(cm.cost) e2:SetCost(cm.cost)
e2:SetTarget(cm.target) e2:SetTarget(cm.target)
e2:SetOperation(cm.operation) e2:SetOperation(cm.operation)
......
...@@ -51,7 +51,7 @@ end ...@@ -51,7 +51,7 @@ end
function cm.activate(e,tp,eg,ep,ev,re,r,rp) function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local label,count=e:GetLabel() local label,count=e:GetLabel()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD)
local g=Duel.SelectMatchingCard(tp,nil,tp,0,LOCATION_ONFIELD,count,count,nil) local g=Duel.SelectMatchingCard(tp,aux.NegateAnyFilter,tp,0,LOCATION_ONFIELD,count,count,nil)
if g:GetCount()==count then if g:GetCount()==count then
Duel.HintSelection(g) Duel.HintSelection(g)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -85,7 +85,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,7 +85,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.tdfilter(c) function cm.tdfilter(c)
return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and c:IsType(TYPE_MONSTER) return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup())
and c:IsSetCard(0xc19) and c:IsAbleToDeck() and c:IsSetCard(0xc19) and c:IsAbleToDeck()
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -123,7 +123,7 @@ function cm.aclimit3(e,re,tp) ...@@ -123,7 +123,7 @@ function cm.aclimit3(e,re,tp)
return rc:IsLocation(LOCATION_HAND) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_TRAP) return rc:IsLocation(LOCATION_HAND) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_TRAP)
end end
function cm.tdfilter(c) function cm.tdfilter(c)
return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and c:IsType(TYPE_MONSTER) return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup())
and c:IsSetCard(0xc19) and c:IsAbleToDeck() and c:IsSetCard(0xc19) and c:IsAbleToDeck()
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -27,6 +27,7 @@ function cm.initial_effect(c) ...@@ -27,6 +27,7 @@ function cm.initial_effect(c)
e3:SetCode(EVENT_FREE_CHAIN) e3:SetCode(EVENT_FREE_CHAIN)
e3:SetRange(LOCATION_SZONE) e3:SetRange(LOCATION_SZONE)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e3:SetCountLimit(1,m) e3:SetCountLimit(1,m)
e3:SetCondition(cm.descon) e3:SetCondition(cm.descon)
e3:SetCost(cm.cost) e3:SetCost(cm.cost)
......
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