Commit ae50058d authored by chronogenexx's avatar chronogenexx

fix & update REASON_RULE

parent eab0f8a3
...@@ -15,9 +15,12 @@ function c56830749.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -15,9 +15,12 @@ function c56830749.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c56830749.target(e,tp,eg,ep,ev,re,r,rp,chk) function c56830749.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(REASON_COST,1-tp,nil,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(REASON_RULE,1-tp,nil,1,nil) end
end end
function c56830749.activate(e,tp,eg,ep,ev,re,r,rp) function c56830749.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectReleaseGroup(REASON_COST,1-tp,nil,1,1,nil) local g=Duel.SelectReleaseGroup(REASON_RULE,1-tp,nil,1,1,nil)
Duel.Release(g,REASON_RULE,1-tp) if g:GetCount()>0 then
Duel.HintSelection(g)
Duel.Release(g,REASON_RULE,1-tp)
end
end end
...@@ -38,16 +38,14 @@ function c96162588.rlcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,16 +38,14 @@ function c96162588.rlcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c96162588.cfilter,1,nil,tp) and e:GetHandler():IsStatus(STATUS_EFFECT_ENABLED) return eg:IsExists(c96162588.cfilter,1,nil,tp) and e:GetHandler():IsStatus(STATUS_EFFECT_ENABLED)
end end
function c96162588.rltg(e,tp,eg,ep,ev,re,r,rp,chk) function c96162588.rltg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsReleasable,1-tp,LOCATION_MZONE,0,1,nil,REASON_RULE) end if chk==0 then return Duel.CheckReleaseGroup(REASON_RULE,1-tp,nil,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_RELEASE,nil,1,1-tp,LOCATION_MZONE) Duel.SetOperationInfo(0,CATEGORY_RELEASE,nil,1,1-tp,LOCATION_MZONE)
end end
function c96162588.rlop(e,tp,eg,ep,ev,re,r,rp) function c96162588.rlop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsReleasable,1-tp,LOCATION_MZONE,0,nil,REASON_RULE) local g=Duel.SelectReleaseGroup(REASON_RULE,1-tp,nil,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_RELEASE) Duel.HintSelection(g)
local sg=g:Select(1-tp,1,1,nil) Duel.Release(g,REASON_RULE,1-tp)
Duel.HintSelection(sg)
Duel.Release(sg,REASON_RULE,1-tp)
end end
end end
function c96162588.desfilter(c) function c96162588.desfilter(c)
......
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