Commit 8dabb795 authored by Huangnan's avatar Huangnan

fix

parent a326cee7
...@@ -358,6 +358,7 @@ ...@@ -358,6 +358,7 @@
12895003 1 --绚丽狂欢-猩红刺客 12895003 1 --绚丽狂欢-猩红刺客
12899006 1 --H.P.T.-囚禁 12899006 1 --H.P.T.-囚禁
12899015 0 --D.H.P.K.-修女塔莉亚 12899015 0 --D.H.P.K.-修女塔莉亚
12866605 1 --电锯人
12847702 1 --绝对毁灭的阎炮 12847702 1 --绝对毁灭的阎炮
12866600 1 --支配恶魔 12866600 1 --支配恶魔
12866610 1 --血之恶魔 12866610 1 --血之恶魔
......
...@@ -144,6 +144,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -144,6 +144,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectMatchingCard(tp,s.tfilter1,tp,LOCATION_MZONE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,s.tfilter1,tp,LOCATION_MZONE,0,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
if not tc:IsImmuneToEffect(e)then
--fusion --fusion
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1)) e2:SetDescription(aux.Stringid(id,1))
...@@ -174,6 +175,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -174,6 +175,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp)
e4:SetLabelObject(e3) e4:SetLabelObject(e3)
e4:SetOperation(s.chop) e4:SetOperation(s.chop)
Duel.RegisterEffect(e4,tp) Duel.RegisterEffect(e4,tp)
end
end end
function s.condition(e,tp,eg,ep,ev,re,r,rp) function s.condition(e,tp,eg,ep,ev,re,r,rp)
return (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2) return (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2)
......
...@@ -58,6 +58,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,6 +58,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectMatchingCard(tp,s.tfilter1,tp,LOCATION_MZONE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,s.tfilter1,tp,LOCATION_MZONE,0,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
if not tc:IsImmuneToEffect(e)then
--atk up --atk up
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1)) e2:SetDescription(aux.Stringid(id,1))
...@@ -84,6 +85,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,6 +85,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp)
e4:SetLabelObject(e3) e4:SetLabelObject(e3)
e4:SetOperation(s.chop) e4:SetOperation(s.chop)
Duel.RegisterEffect(e4,tp) Duel.RegisterEffect(e4,tp)
end
end end
-- --
function s.efcon(e,tp,eg,ep,ev,re,r,rp) function s.efcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -68,6 +68,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,6 +68,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectMatchingCard(tp,s.tfilter1,tp,LOCATION_MZONE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,s.tfilter1,tp,LOCATION_MZONE,0,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
if not tc:IsImmuneToEffect(e)then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetDescription(aux.Stringid(id,1)) e1:SetDescription(aux.Stringid(id,1))
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT) e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
...@@ -103,6 +104,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -103,6 +104,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp)
e4:SetLabelObject(e3) e4:SetLabelObject(e3)
e4:SetOperation(s.chop) e4:SetOperation(s.chop)
Duel.RegisterEffect(e4,tp) Duel.RegisterEffect(e4,tp)
end
end end
function s.efcon(e,tp,eg,ep,ev,re,r,rp) function s.efcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_FUSION)~=0 return bit.band(r,REASON_FUSION)~=0
......
...@@ -77,6 +77,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,6 +77,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectMatchingCard(tp,s.tfilter1,tp,LOCATION_MZONE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,s.tfilter1,tp,LOCATION_MZONE,0,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
if not tc:IsImmuneToEffect(e)then
--atk down --atk down
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1)) e2:SetDescription(aux.Stringid(id,1))
...@@ -104,6 +105,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -104,6 +105,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp)
e4:SetLabelObject(e3) e4:SetLabelObject(e3)
e4:SetOperation(s.chop) e4:SetOperation(s.chop)
Duel.RegisterEffect(e4,tp) Duel.RegisterEffect(e4,tp)
end
end end
function s.efcon(e,tp,eg,ep,ev,re,r,rp) function s.efcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_FUSION)~=0 return bit.band(r,REASON_FUSION)~=0
......
...@@ -77,6 +77,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,6 +77,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectMatchingCard(tp,s.tfilter1,tp,LOCATION_MZONE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,s.tfilter1,tp,LOCATION_MZONE,0,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
if not tc:IsImmuneToEffect(e)then
--atk down --atk down
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(id,1)) e3:SetDescription(aux.Stringid(id,1))
...@@ -104,6 +105,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -104,6 +105,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp)
e4:SetLabelObject(e3) e4:SetLabelObject(e3)
e4:SetOperation(s.chop) e4:SetOperation(s.chop)
Duel.RegisterEffect(e4,tp) Duel.RegisterEffect(e4,tp)
end
end end
function s.efcon(e,tp,eg,ep,ev,re,r,rp) function s.efcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_FUSION)~=0 return bit.band(r,REASON_FUSION)~=0
......
...@@ -77,6 +77,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,6 +77,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectMatchingCard(tp,s.tfilter1,tp,LOCATION_MZONE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,s.tfilter1,tp,LOCATION_MZONE,0,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
if not tc:IsImmuneToEffect(e)then
--atk down --atk down
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,1)) e1:SetDescription(aux.Stringid(id,1))
...@@ -104,6 +105,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -104,6 +105,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp)
e4:SetLabelObject(e3) e4:SetLabelObject(e3)
e4:SetOperation(s.chop) e4:SetOperation(s.chop)
Duel.RegisterEffect(e4,tp) Duel.RegisterEffect(e4,tp)
end
end end
function s.efcon(e,tp,eg,ep,ev,re,r,rp) function s.efcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_FUSION)~=0 return bit.band(r,REASON_FUSION)~=0
......
...@@ -87,6 +87,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -87,6 +87,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectMatchingCard(tp,s.tfilter1,tp,LOCATION_MZONE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,s.tfilter1,tp,LOCATION_MZONE,0,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
if not tc:IsImmuneToEffect(e)then
--pierce --pierce
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1)) e2:SetDescription(aux.Stringid(id,1))
...@@ -110,6 +111,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -110,6 +111,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp)
e4:SetLabelObject(e3) e4:SetLabelObject(e3)
e4:SetOperation(s.chop) e4:SetOperation(s.chop)
Duel.RegisterEffect(e4,tp) Duel.RegisterEffect(e4,tp)
end
end end
-- --
function s.efcon(e,tp,eg,ep,ev,re,r,rp) function s.efcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -159,6 +159,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -159,6 +159,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectMatchingCard(tp,s.tfilter1,tp,LOCATION_MZONE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,s.tfilter1,tp,LOCATION_MZONE,0,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
if not tc:IsImmuneToEffect(e)then
--draw --draw
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1)) e2:SetDescription(aux.Stringid(id,1))
...@@ -186,6 +187,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -186,6 +187,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp)
e4:SetLabelObject(e3) e4:SetLabelObject(e3)
e4:SetOperation(s.chop) e4:SetOperation(s.chop)
Duel.RegisterEffect(e4,tp) Duel.RegisterEffect(e4,tp)
end
end end
function s.efcon(e,tp,eg,ep,ev,re,r,rp) function s.efcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_FUSION)~=0 return bit.band(r,REASON_FUSION)~=0
......
...@@ -62,6 +62,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,6 +62,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectMatchingCard(tp,s.tfilter1,tp,LOCATION_MZONE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,s.tfilter1,tp,LOCATION_MZONE,0,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
if not tc:IsImmuneToEffect(e)then
--atk down --atk down
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1)) e2:SetDescription(aux.Stringid(id,1))
...@@ -89,6 +90,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -89,6 +90,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp)
e4:SetLabelObject(e3) e4:SetLabelObject(e3)
e4:SetOperation(s.chop) e4:SetOperation(s.chop)
Duel.RegisterEffect(e4,tp) Duel.RegisterEffect(e4,tp)
end
end end
function s.efcon(e,tp,eg,ep,ev,re,r,rp) function s.efcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_FUSION)~=0 return bit.band(r,REASON_FUSION)~=0
......
...@@ -88,12 +88,12 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -88,12 +88,12 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectMatchingCard(tp,s.tfilter1,tp,LOCATION_MZONE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,s.tfilter1,tp,LOCATION_MZONE,0,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
if not tc:IsImmuneToEffect(e)then
--immune --immune
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(id,1)) e2:SetDescription(aux.Stringid(id,1))
e2:SetProperty(EFFECT_FLAG_CLIENT_HINT) e2:SetProperty(EFFECT_FLAG_CLIENT_HINT+EFFECT_FLAG_SINGLE_RANGE)
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCode(EFFECT_IMMUNE_EFFECT) e2:SetCode(EFFECT_IMMUNE_EFFECT)
e2:SetValue(s.efilter) e2:SetValue(s.efilter)
...@@ -114,6 +114,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -114,6 +114,7 @@ function s.thop2(e,tp,eg,ep,ev,re,r,rp)
e4:SetLabelObject(e3) e4:SetLabelObject(e3)
e4:SetOperation(s.chop) e4:SetOperation(s.chop)
Duel.RegisterEffect(e4,tp) Duel.RegisterEffect(e4,tp)
end
end end
function s.efcon(e,tp,eg,ep,ev,re,r,rp) function s.efcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_FUSION)~=0 return bit.band(r,REASON_FUSION)~=0
...@@ -124,9 +125,8 @@ function s.efop(e,tp,eg,ep,ev,re,r,rp) ...@@ -124,9 +125,8 @@ function s.efop(e,tp,eg,ep,ev,re,r,rp)
--immune --immune
local e2=Effect.CreateEffect(rc) local e2=Effect.CreateEffect(rc)
e2:SetDescription(aux.Stringid(id,1)) e2:SetDescription(aux.Stringid(id,1))
e2:SetProperty(EFFECT_FLAG_CLIENT_HINT) e2:SetProperty(EFFECT_FLAG_CLIENT_HINT+EFFECT_FLAG_SINGLE_RANGE)
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCode(EFFECT_IMMUNE_EFFECT) e2:SetCode(EFFECT_IMMUNE_EFFECT)
e2:SetValue(s.efilter) e2:SetValue(s.efilter)
......
...@@ -12,7 +12,7 @@ function c12841122.initial_effect(c) ...@@ -12,7 +12,7 @@ function c12841122.initial_effect(c)
e1:SetCondition(c12841122.sccon) e1:SetCondition(c12841122.sccon)
e1:SetTarget(c12841122.sctg) e1:SetTarget(c12841122.sctg)
e1:SetOperation(c12841122.scop) e1:SetOperation(c12841122.scop)
--c:RegisterEffect(e1) c:RegisterEffect(e1)
--token --token
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(12841122,1)) e2:SetDescription(aux.Stringid(12841122,1))
...@@ -24,7 +24,7 @@ function c12841122.initial_effect(c) ...@@ -24,7 +24,7 @@ function c12841122.initial_effect(c)
e2:SetCondition(c12841122.spcon) e2:SetCondition(c12841122.spcon)
e2:SetTarget(c12841122.sptg) e2:SetTarget(c12841122.sptg)
e2:SetOperation(c12841122.spop) e2:SetOperation(c12841122.spop)
--c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c12841122.sccon(e,tp,eg,ep,ev,re,r,rp) function c12841122.sccon(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase() local ph=Duel.GetCurrentPhase()
......
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