Commit 17fbc3a3 authored by TanakaKotoha's avatar TanakaKotoha

dededededededededededede

parent dd48128a
......@@ -58,14 +58,14 @@ function cm.spop(e,tp)
rsop.SelectSpecialSummon(tp,rscf.spfilter2(Card.IsType,TYPE_LINK),tp,LOCATION_REMOVED,LOCATION_REMOVED,1,1,nil,{},e,tp)
end
function cm.setcon(e,tp,eg,ep,ev,re,r,rp)
return ep==tp and ev>=1000 and (r & REASON_BATTLE ~=0 or (r & REASON_EFFECT ~=0 and rp~=tp))
return ep==tp and ev>=500 and (r & REASON_BATTLE ~=0 or (r & REASON_EFFECT ~=0 and rp~=tp))
end
function cm.setfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable()
end
function cm.setop(e,tp,eg,ep,ev,re,r,rp)
local ft=Duel.GetLocationCount(tp,LOCATION_SZONE)
local st=math.floor(ev/1000)
local st=math.floor(ev/500)
if ft<=0 then return end
rsop.SelectSolve(HINTMSG_SET,tp,cm.setfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,math.min(ft,st),nil,cm.setfun,tp)
end
......
......@@ -37,12 +37,13 @@ function cm.initial_effect(c)
c:RegisterEffect(e2)
--direct attack
local e3=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(81022053,0))
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE)
e3:SetCondition(c53054164.dacon)
e3:SetCost(c53054164.dacost)
e3:SetTarget(c53054164.datg)
e3:SetOperation(c53054164.daop)
e3:SetCondition(c81022053.dacon)
e3:SetCost(c81022053.dacost)
e3:SetTarget(c81022053.datg)
e3:SetOperation(c81022053.daop)
c:RegisterEffect(e3)
--pendulum
local e6=Effect.CreateEffect(c)
......@@ -115,37 +116,37 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function c53054164.dacon(e,tp,eg,ep,ev,re,r,rp)
function c81022053.dacon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsAbleToEnterBP()
end
function c53054164.dacost(e,tp,eg,ep,ev,re,r,rp,chk)
function c81022053.dacost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end
function c53054164.datg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,53054164)==0 end
function c81022053.datg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,81022053)==0 end
end
function c53054164.daop(e,tp,eg,ep,ev,re,r,rp)
function c81022053.daop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_DIRECT_ATTACK)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetTarget(cm.dastg)
e1:SetTarget(c81022053.dastg)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_CANNOT_ATTACK)
e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetTarget(cm.atktg)
e2:SetTarget(c81022053.atktg)
e2:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e2,tp)
Duel.RegisterFlagEffect(tp,53054164,RESET_PHASE+PHASE_END,0,1)
Duel.RegisterFlagEffect(tp,81022053,RESET_PHASE+PHASE_END,0,1)
end
function cm.dastg(e,c)
function c81022053.dastg(e,c)
return c:IsType(TYPE_RITUAL) and c:IsType(TYPE_PENDULUM)
end
function cm.atktg(e,c)
function c81022053.atktg(e,c)
return not c:IsRace(RACE_PYRO)
end
function cm.pencon(e,tp,eg,ep,ev,re,r,rp)
......
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