Commit c421a3c2 authored by wind2009's avatar wind2009

Fix

parent d45b8615
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
101304006 101304006
101304007 101304007
101304016 101304016
101304030
101304033 101304033
101304034 101304034
101304205 101304205
...@@ -18,4 +19,5 @@ ...@@ -18,4 +19,5 @@
101304062 101304062
101304063 101304063
101304064 101304064
101304067
101304208 101304208
\ No newline at end of file
...@@ -14,7 +14,8 @@ function s.initial_effect(c) ...@@ -14,7 +14,8 @@ function s.initial_effect(c)
c:RegisterEffect(e0) c:RegisterEffect(e0)
--tohand --tohand
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND) e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_DESTROY+CATEGORY_TOHAND)
e1:SetRange(LOCATION_PZONE) e1:SetRange(LOCATION_PZONE)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
...@@ -23,26 +24,26 @@ function s.initial_effect(c) ...@@ -23,26 +24,26 @@ function s.initial_effect(c)
e1:SetOperation(s.thop) e1:SetOperation(s.thop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--destroy --destroy
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1))
e2:SetCategory(CATEGORY_DESTROY+CATEGORY_REMOVE+CATEGORY_GRAVE_ACTION)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCountLimit(1,id+o)
e2:SetCondition(s.descon)
e2:SetTarget(s.destg)
e2:SetOperation(s.desop)
c:RegisterEffect(e2)
--immune
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(id,0)) e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCategory(CATEGORY_DESTROY+CATEGORY_REMOVE+CATEGORY_GRAVE_ACTION) e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetRange(LOCATION_MZONE)
e3:SetProperty(EFFECT_FLAG_DELAY) e3:SetCode(EFFECT_IMMUNE_EFFECT)
e3:SetCode(EVENT_SPSUMMON_SUCCESS) e3:SetCondition(s.efcon)
e3:SetCountLimit(1,id+o) e3:SetValue(s.efilter)
e3:SetCondition(s.descon)
e3:SetTarget(s.destg)
e3:SetOperation(s.desop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--immune
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e4:SetRange(LOCATION_MZONE)
e4:SetCode(EFFECT_IMMUNE_EFFECT)
e4:SetCondition(s.efcon)
e4:SetValue(s.efilter)
c:RegisterEffect(e4)
end end
function s.thfilter(c) function s.thfilter(c)
return c:IsFaceupEx() and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSetCard(0x45) and c:IsAbleToHand() return c:IsFaceupEx() and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSetCard(0x45) and c:IsAbleToHand()
...@@ -82,8 +83,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -82,8 +83,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local sg=Duel.GetMatchingGroup(s.desfilter,tp,0,LOCATION_ONFIELD,nil) local sg=Duel.GetMatchingGroup(s.desfilter,tp,0,LOCATION_ONFIELD,nil)
if Duel.Destroy(sg,REASON_EFFECT)~=0 if Duel.Destroy(sg,REASON_EFFECT)~=0
and c:IsRelateToChain() and c:IsRelateToChain() and c:GetSequence()>4
and c:GetSequence()>4
and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(s.rmfilter),tp,0,LOCATION_GRAVE,1,nil) and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(s.rmfilter),tp,0,LOCATION_GRAVE,1,nil)
and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
Duel.BreakEffect() Duel.BreakEffect()
...@@ -98,4 +98,4 @@ function s.efcon(e) ...@@ -98,4 +98,4 @@ function s.efcon(e)
end end
function s.efilter(e,te) function s.efilter(e,te)
return te:IsActiveType(TYPE_MONSTER) and te:GetOwner()~=e:GetOwner() return te:IsActiveType(TYPE_MONSTER) and te:GetOwner()~=e:GetOwner()
end end
\ No newline at end of file
...@@ -82,4 +82,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -82,4 +82,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
tc:CompleteProcedure() tc:CompleteProcedure()
end end
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