Commit 3a04f42d authored by VanillaSalt's avatar VanillaSalt

fix

parent 977c89f5
......@@ -53,7 +53,7 @@ function c20366274.ffilter1(c)
return c:IsSetCard(0x9d)
end
function c20366274.ffilter2(c)
return c:IsAttribute(ATTRIBUTE_LIGHT) or c:IsHasEffect(4904633)~=0
return c:IsAttribute(ATTRIBUTE_LIGHT) or c:IsHasEffect(4904633)
end
function c20366274.exfilter(c,g)
return c:IsFaceup() and c:IsCanBeFusionMaterial() and not g:IsContains(c)
......@@ -174,7 +174,7 @@ function c20366274.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(g,REASON_EFFECT)
end
end
function c20366274.descon(e,tp,eg,ep,ev,re,r,rp,chk)
function c20366274.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local bc=c:GetBattleTarget()
return bc and bit.band(bc:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL
......
......@@ -19,10 +19,9 @@ function c29400787.initial_effect(c)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(EFFECT_DIRECT_ATTACK)
e3:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e3:SetRange(LOCATION_SZONE)
e3:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e3:SetCondition(c29400787.dircon)
e3:SetTarget(c29400787.dirtg)
c:RegisterEffect(e3)
--tohand
local e4=Effect.CreateEffect(c)
......@@ -45,9 +44,15 @@ function c29400787.initial_effect(c)
e5:SetValue(0)
c:RegisterEffect(e5)
end
function c29400787.cfilter(e,c)
function c29400787.bttg(e,c)
return c:IsFacedown()
end
function c29400787.btval(e,c)
return not c:IsImmuneToEffect(e)
end
function c29400787.dirtg(e,c)
return not Duel.IsExistingMatchingCard(Card.IsFaceup,c:GetControler(),0,LOCATION_MZONE,1,nil)
end
function c29400787.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetAttacker():IsControler(1-tp) and Duel.GetAttackTarget()==nil
end
......@@ -67,13 +72,3 @@ function c29400787.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g)
end
end
function c29400787.bttg(e,c)
return c:IsFacedown()
end
function c29400787.btval(e,c)
return not c:IsImmuneToEffect(e)
end
function c29400787.dircon(e)
local tp=Duel.GetTurnPlayer()
return not Duel.IsExistingMatchingCard(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil)
end
\ No newline at end of file
......@@ -45,7 +45,7 @@ function c48424886.ffilter1(c)
return c:IsSetCard(0x9d)
end
function c48424886.ffilter2(c)
return c:IsAttribute(ATTRIBUTE_FIRE) or c:IsHasEffect(4904633)~=0
return c:IsAttribute(ATTRIBUTE_FIRE) or c:IsHasEffect(4904633)
end
function c48424886.exfilter(c,g)
return c:IsFaceup() and c:IsCanBeFusionMaterial() and not g:IsContains(c)
......
......@@ -46,7 +46,7 @@ function c74822425.ffilter1(c)
return c:IsSetCard(0x9d)
end
function c74822425.ffilter2(c)
return c:IsAttribute(ATTRIBUTE_EARTH) or c:IsHasEffect(4904633)~=0
return c:IsAttribute(ATTRIBUTE_EARTH) or c:IsHasEffect(4904633)
end
function c74822425.exfilter(c,g)
return c:IsFaceup() and c:IsCanBeFusionMaterial() and not g:IsContains(c)
......
......@@ -27,10 +27,9 @@ function c7617062.initial_effect(c)
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD)
e4:SetCode(EFFECT_DIRECT_ATTACK)
e4:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e4:SetRange(LOCATION_SZONE)
e4:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e4:SetCondition(c7617062.dircon)
e4:SetTarget(c7617062.dirtg)
c:RegisterEffect(e4)
--pos
local e5=Effect.CreateEffect(c)
......@@ -40,6 +39,15 @@ function c7617062.initial_effect(c)
e5:SetOperation(c7617062.operation)
c:RegisterEffect(e5)
end
function c7617062.bttg(e,c)
return c:IsFacedown()
end
function c7617062.btval(e,c)
return not c:IsImmuneToEffect(e)
end
function c7617062.dirtg(e,c)
return not Duel.IsExistingMatchingCard(Card.IsFaceup,c:GetControler(),0,LOCATION_MZONE,1,nil)
end
function c7617062.ftarget(e,c)
return not c:IsSetCard(0x8d)
end
......@@ -58,13 +66,3 @@ end
function c7617062.posop(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangePosition(e:GetHandler(),POS_FACEDOWN_DEFENCE)
end
function c7617062.bttg(e,c)
return c:IsFacedown()
end
function c7617062.btval(e,c)
return not c:IsImmuneToEffect(e)
end
function c7617062.dircon(e)
local tp=Duel.GetTurnPlayer()
return not Duel.IsExistingMatchingCard(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil)
end
\ No newline at end of file
......@@ -37,7 +37,6 @@ function c94977269.initial_effect(c)
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e5:SetCode(EVENT_SPSUMMON_SUCCESS)
e5:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e5:SetRange(LOCATION_MZONE)
e5:SetOperation(c94977269.checkop)
c:RegisterEffect(e5)
......@@ -57,7 +56,7 @@ function c94977269.ffilter1(c)
return c:IsSetCard(0x9d)
end
function c94977269.ffilter2(c)
return c:IsAttribute(ATTRIBUTE_DARK) or c:IsHasEffect(4904633)~=0
return c:IsAttribute(ATTRIBUTE_DARK) or c:IsHasEffect(4904633)
end
function c94977269.exfilter(c,g)
return c:IsFaceup() and c:IsCanBeFusionMaterial() and not g:IsContains(c)
......
......@@ -19,10 +19,9 @@ function c99795159.initial_effect(c)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(EFFECT_DIRECT_ATTACK)
e3:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e3:SetRange(LOCATION_SZONE)
e3:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e3:SetCondition(c99795159.dircon)
e3:SetTarget(c99795159.dirtg)
c:RegisterEffect(e3)
--
local e4=Effect.CreateEffect(c)
......@@ -34,18 +33,17 @@ function c99795159.initial_effect(c)
e4:SetValue(c99795159.val)
c:RegisterEffect(e4)
end
function c99795159.val(e,re,dam,r,rp,rc)
if bit.band(r,REASON_EFFECT)~=0 or (rc and not rc:IsSetCard(0x8d)) then
return dam/2
else return dam end
end
function c99795159.bttg(e,c)
return c:IsFacedown()
end
function c99795159.btval(e,c)
return not c:IsImmuneToEffect(e)
end
function c99795159.dircon(e)
local tp=Duel.GetTurnPlayer()
return not Duel.IsExistingMatchingCard(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil)
end
\ No newline at end of file
function c99795159.dirtg(e,c)
return not Duel.IsExistingMatchingCard(Card.IsFaceup,c:GetControler(),0,LOCATION_MZONE,1,nil)
end
function c99795159.val(e,re,dam,r,rp,rc)
if bit.band(r,REASON_EFFECT)~=0 or (rc and not rc:IsSetCard(0x8d)) then
return dam/2
else return dam end
end
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