Commit 33a95229 authored by Nemo Ma's avatar Nemo Ma

fix

parent 394c6ac9
......@@ -24,7 +24,7 @@ function c11621103.initial_effect(c)
--Destroy replace
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_DESTROY_SUBSTITUTE)
e3:SetCode(EFFECT_DESTROY_REPLACE)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetRange(LOCATION_SZONE)
e3:SetTarget(cm.desreptg)
......
......@@ -21,7 +21,7 @@ function cm.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_FLIP)
e2:SetRange(LOCATION_MZONE)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e2:SetCountLimit(1,m)
e2:SetTarget(cm.target)
e2:SetOperation(cm.operation)
......
......@@ -24,7 +24,7 @@ function cm.initial_effect(c)
end
function cm.rsfwh_ex_ritual(c)
return ((c:CheckSetCard("Vairina","BlazeMaiden") and c:GetSummonType()==SUMMON_TYPE_SPECIAL+SUMMON_VALUE_SELF )
return c:CheckSetCard("Vairina","BlazeMaiden") and c:GetSummonType()==SUMMON_TYPE_SPECIAL+SUMMON_VALUE_SELF
end
function cm.val(e,c)
return c:GetOverlayCount()
......
......@@ -94,26 +94,11 @@ function cm.acop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_DIRECT_ATTACK)
e1:SetTargetRange(0,LOCATION_MZONE)
e1:SetTarget(function(e,c)
local le={c:IsHasEffect(EFFECT_CANNOT_SELECT_BATTLE_TARGET)}
local res=true
for _,v in pairs(le) do
if v:GetLabel()~=m then
local val=v:GetValue()
if not val or val(v,sc) then
res=false
break
end
end
end
return res
end)
Duel.RegisterEffect(e1,tp)
local e2=e1:Clone()
e2:SetLabel(m)
e2:SetCode(EFFECT_CANNOT_SELECT_BATTLE_TARGET)
e2:SetLabelObject(e1)
e2:SetValue(cm.atklimit)
e2:SetValue(function(e,c)return c==sc end)
Duel.RegisterEffect(e2,tp)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
......@@ -137,25 +122,6 @@ function cm.acop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e4)
end
end
function cm.atktg(e,c)
local tc=e:GetLabelObject()
local le={c:IsHasEffect(EFFECT_CANNOT_SELECT_BATTLE_TARGET)}
local res=true
for _,v in pairs(le) do
if v:GetLabel()~=m then
local val=v:GetValue()
if not val or val(v,tc) then
res=false
break
end
end
end
return res
end
function cm.atklimit(e,c)
local tc=e:GetLabelObject():GetLabelObject()
return c==tc
end
function cm.reset(e,tp,eg,ep,ev,re,r,rp)
e:GetLabelObject():GetLabelObject():Reset()
e:GetLabelObject():Reset()
......
......@@ -59,7 +59,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local cp={}
local func=Card.RegisterEffect
Card.RegisterEffect=function(tc,e,f)
if e:GetRange()&LOCATION_SZONE~=0 and e:GetProperty()&EFFECT_FLAG_UNCOPYABLE==0 then table.insert(cp,e:Clone()) end
if e:GetRange()==LOCATION_SZONE and e:GetProperty()&EFFECT_FLAG_UNCOPYABLE==0 then table.insert(cp,e:Clone()) end
return func(tc,e,f)
end
Duel.CreateToken(tp,tc:GetOriginalCode())
......
--天体震荡
function c9910807.initial_effect(c)
aux.AddCodeList(c,9910803)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DESTROY+CATEGORY_TOHAND+CATEGORY_SEARCH)
......
......@@ -50,7 +50,6 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
local g2=Duel.SelectMatchingCard(tp,nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,g1)
g1:Merge(g2)
Duel.HintSelection(g1)
Duel.Destroy(g1,REASON_EFFECT)
local c=e:GetHandler()
if c:IsFacedown() or not c:IsRelateToEffect(e) or c:GetAttack()<2000 or c:IsStatus(STATUS_BATTLE_DESTROYED) then
return
......
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