Commit 25a71338 authored by Huangnan's avatar Huangnan

fix&edit

parent c6ca570e
No preview for this file type
...@@ -69,8 +69,8 @@ function c1000808.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,8 +69,8 @@ function c1000808.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
end end
function c1000808.splimit(e,c,tp,sumtp,sumpos) function c1000808.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsSetCard(0x3204) return not c:IsSetCard(0x3204) and c:IsLocation(LOCATION_EXTRA)
end end
function c1000808.dmcon(e,tp,eg,ep,ev,re,r,rp) function c1000808.dmcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_RITUAL)==SUMMON_TYPE_RITUAL return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_RITUAL)==SUMMON_TYPE_RITUAL
......
...@@ -36,7 +36,6 @@ function cm.initial_effect(c) ...@@ -36,7 +36,6 @@ function cm.initial_effect(c)
-- --
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetCode(EVENT_BATTLE_DESTROYING) e3:SetCode(EVENT_BATTLE_DESTROYING)
e3:SetCondition(aux.bdocon) e3:SetCondition(aux.bdocon)
e3:SetTarget(cm.damtg) e3:SetTarget(cm.damtg)
...@@ -107,13 +106,29 @@ function cm.damtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -107,13 +106,29 @@ function cm.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
end end
function cm.damop(e,tp,eg,ep,ev,re,r,rp) function cm.damop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD) e4:SetType(EFFECT_TYPE_FIELD)
e4:SetCode(EFFECT_SPSUMMON_COUNT_LIMIT) e4:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e4:SetTargetRange(0,1) e4:SetTargetRange(1,0)
e4:SetValue(1) e4:SetCondition(cm.sumcon)
e4:SetReset(RESET_PHASE+PHASE_END,2) e4:SetReset(RESET_PHASE+PHASE_END,2)
Duel.RegisterEffect(e4,tp) Duel.RegisterEffect(e4,1-tp)
local ge2=Effect.CreateEffect(c)
ge2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge2:SetCode(EVENT_SPSUMMON_SUCCESS)
ge2:SetOperation(cm.opdo2)
ge2:SetReset(RESET_PHASE+PHASE_END,2)
Duel.RegisterEffect(ge2,tp)
end
function cm.sumcon(e)
return Duel.GetFlagEffect(e:GetHandlerPlayer(),m+100)>0
end
function cm.opdo2(e,tp,eg)
for tc in aux.Next(eg) do
if Duel.GetFlagEffect(tc:GetSummonPlayer(),m+100)==0 then
Duel.RegisterFlagEffect(tc:GetSummonPlayer(),m+100,RESET_PHASE+PHASE_END,0,2,0)
end
end
end end
\ No newline at end of file
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