Commit adf3865a authored by wind2009's avatar wind2009

Fix Mitsurugi Magatama

parent 60c0191d
Pipeline #35099 passed with stages
in 1 minute and 7 seconds
No preview for this file type
...@@ -15,8 +15,9 @@ function s.initial_effect(c) ...@@ -15,8 +15,9 @@ function s.initial_effect(c)
e1:SetOperation(s.operation) e1:SetOperation(s.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function s.cfilter(c) function s.cfilter(c,tp)
return c:IsRace(RACE_REPTILE) return c:IsRace(RACE_REPTILE) and (c:IsControler(tp) or c:IsFaceup())
and Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_ONFIELD,1,c)
end end
function s.con(e,tp,eg,ep,ev,re,r,rp) function s.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsMainPhase() return Duel.IsMainPhase()
...@@ -37,6 +38,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -37,6 +38,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if op==1 then if op==1 then
if e:IsCostChecked() then if e:IsCostChecked() then
local g=Duel.SelectReleaseGroup(tp,s.cfilter,1,1,nil) local g=Duel.SelectReleaseGroup(tp,s.cfilter,1,1,nil)
aux.UseExtraReleaseCount(g,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
e:SetLabel(1) e:SetLabel(1)
......
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