Commit c19d8319 authored by Chen Bill's avatar Chen Bill

fix REASON_MAINTENANCE

parent 2c8280a0
......@@ -16,9 +16,9 @@ function c65475294.costcon(e,tp,eg,ep,ev,re,r,rp)
end
function c65475294.costop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if Duel.CheckReleaseGroup(REASON_COST,tp,nil,1,c) and Duel.SelectEffectYesNo(tp,c,aux.Stringid(65475294,0)) then
local g=Duel.SelectReleaseGroup(REASON_COST,tp,nil,1,1,c)
Duel.Release(g,REASON_COST)
if Duel.CheckReleaseGroup(REASON_MAINTENANCE,tp,nil,1,c) and Duel.SelectEffectYesNo(tp,c,aux.Stringid(65475294,0)) then
local g=Duel.SelectReleaseGroup(REASON_MAINTENANCE,tp,nil,1,1,c)
Duel.Release(g,REASON_MAINTENANCE)
else
Duel.Destroy(c,REASON_COST)
end
......
......@@ -79,8 +79,8 @@ end
function c69381150.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.HintSelection(Group.FromCards(c))
if Duel.CheckReleaseGroup(REASON_COST,tp,Card.IsType,1,nil,TYPE_LINK) and Duel.SelectYesNo(tp,aux.Stringid(69381150,0)) then
local g=Duel.SelectReleaseGroup(REASON_COST,tp,Card.IsType,1,1,nil,TYPE_LINK)
Duel.Release(g,REASON_COST)
if Duel.CheckReleaseGroup(REASON_MAINTENANCE,tp,Card.IsType,1,nil,TYPE_LINK) and Duel.SelectYesNo(tp,aux.Stringid(69381150,0)) then
local g=Duel.SelectReleaseGroup(REASON_MAINTENANCE,tp,Card.IsType,1,1,nil,TYPE_LINK)
Duel.Release(g,REASON_MAINTENANCE)
else Duel.Destroy(c,REASON_COST) end
end
......@@ -21,10 +21,10 @@ function c70875955.initial_effect(c)
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(70875955,1))
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e3:SetRange(LOCATION_SZONE)
e3:SetCode(EVENT_PHASE+PHASE_END)
e3:SetCountLimit(1)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_IGNORE_IMMUNE)
e3:SetOperation(c70875955.mtop)
c:RegisterEffect(e3)
end
......@@ -45,10 +45,10 @@ function c70875955.rfilter(c)
return c:IsType(TYPE_TOKEN) or c:IsSetCard(0x101b)
end
function c70875955.mtop(e,tp,eg,ep,ev,re,r,rp)
if Duel.CheckReleaseGroup(REASON_COST,tp,c70875955.rfilter,1,nil)
if Duel.CheckReleaseGroup(REASON_MAINTENANCE,tp,c70875955.rfilter,1,nil)
and Duel.SelectYesNo(tp,aux.Stringid(70875955,2)) then
local g=Duel.SelectReleaseGroup(REASON_COST,tp,c70875955.rfilter,1,1,nil)
Duel.Release(g,REASON_RULE)
local g=Duel.SelectReleaseGroup(REASON_MAINTENANCE,tp,c70875955.rfilter,1,1,nil)
Duel.Release(g,REASON_MAINTENANCE)
else
Duel.SendtoGrave(e:GetHandler(),REASON_RULE)
end
......
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