Commit 8dabb795 authored by Huangnan's avatar Huangnan

fix

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