Commit eb2ec02a authored by POLYMER's avatar POLYMER

fix

parent 724b80e3
......@@ -69,9 +69,13 @@ function cm.setop(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.rccon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,m)<1 and Duel.GetTurnPlayer()~=tp
return true --Duel.GetFlagEffect(tp,m)<1 and Duel.GetTurnPlayer()~=tp
end
function cm.rcop(e,tp,eg,ep,ev,re,r,rp)
if cm[0]>0 then
--Duel.BreakEffect()
Duel.Recover(tp,cm[0]*500,REASON_EFFECT)
end
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
if g:GetCount()==0 then return end
local ct1=Duel.GetFieldGroupCount(tp,LOCATION_REMOVED,0)*100
......@@ -92,10 +96,6 @@ function cm.rcop(e,tp,eg,ep,ev,re,r,rp)
sc:RegisterEffect(e2)
sc=g:GetNext()
end
if cm[0]>0 then
Duel.BreakEffect()
Duel.Recover(tp,cm[0]*500,REASON_EFFECT)
end
end
function cm.cfilter(c)
return c:IsSetCard(0xa440) and c:IsType(TYPE_MONSTER) and c:IsFaceup()
......
......@@ -46,7 +46,6 @@ function c65840025.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c65840025.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c65840025.setfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c65840025.drop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -27,7 +27,7 @@ end
function c65840045.spcon(e,c)
if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
and (Duel.IsExistingMatchingCard(c65840045.filter,c:GetControler(),LOCATION_MZONE,0,1,nil) or Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0)
and (Duel.IsExistingMatchingCard(c65840045.filter,c:GetControler(),LOCATION_MZONE,0,1,nil) or Duel.GetFieldGroupCount(c:GetControler(),LOCATION_MZONE,0)==0)
end
function c65840045.target2(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -191,6 +191,7 @@ function c98941050.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local rg=Duel.SelectMatchingCard(tp,c98941050.fcfilter,tp,LOCATION_MZONE,0,1,ct,nil)
if Duel.Remove(rg,0,REASON_COST+REASON_TEMPORARY)~=0 then
rg:KeepAlive()
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_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