Commit 086042fb authored by DailyShana's avatar DailyShana

Merge #709

parents 8890497e c4ac29aa
......@@ -17,3 +17,4 @@ function c10526791.initial_effect(c)
e2:SetValue(1)
c:RegisterEffect(e2)
end
c10526791.material_setcode=0x8
......@@ -45,6 +45,7 @@ function c11502550.initial_effect(c)
e5:SetValue(c11502550.atkval)
c:RegisterEffect(e5)
end
c11502550.material_setcode=0x8
function c11502550.splimit(e,se,sp,st)
return not e:GetHandler():IsLocation(LOCATION_EXTRA)
end
......
......@@ -31,6 +31,7 @@ function c13293158.initial_effect(c)
e3:SetOperation(c13293158.activate)
c:RegisterEffect(e3)
end
c13293158.material_setcode=0x8
c13293158.dark_calling=true
function c13293158.splimit(e,se,sp,st)
return st==SUMMON_TYPE_FUSION+0x10
......
......@@ -17,6 +17,7 @@ function c14225239.initial_effect(c)
e2:SetCondition(c14225239.dacon)
c:RegisterEffect(e2)
end
c14225239.material_setcode=0x8
function c14225239.filter(c)
return c:IsFacedown() and c:GetSequence()~=5
end
......
......@@ -22,6 +22,7 @@ function c16304628.initial_effect(c)
e3:SetValue(aux.fuslimit)
c:RegisterEffect(e3)
end
c16304628.material_setcode=0x8
function c16304628.atkcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION
end
......
......@@ -48,6 +48,7 @@ function c17032740.initial_effect(c)
e5:SetOperation(c17032740.coinop)
c:RegisterEffect(e5)
end
c17032740.material_setcode=0x8
function c17032740.splimit(e,se,sp,st)
return not e:GetHandler():IsLocation(LOCATION_EXTRA)
end
......
......@@ -22,6 +22,7 @@ function c1945387.initial_effect(c)
e2:SetOperation(c1945387.drop)
c:RegisterEffect(e2)
end
c1945387.material_setcode=0x8
function c1945387.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetTargetPlayer(tp)
......
......@@ -22,6 +22,7 @@ function c21947653.initial_effect(c)
e2:SetOperation(c21947653.operation)
c:RegisterEffect(e2)
end
c21947653.material_setcode=0x8
c21947653.dark_calling=true
function c21947653.splimit(e,se,sp,st)
return st==SUMMON_TYPE_FUSION+0x10
......@@ -38,4 +39,4 @@ function c21947653.operation(e,tp,eg,ep,ev,re,r,rp)
if tc and tc:IsRelateToEffect(e) then
Duel.Destroy(tc,REASON_EFFECT)
end
end
\ No newline at end of file
end
......@@ -30,6 +30,7 @@ function c22061412.initial_effect(c)
e4:SetValue(aux.fuslimit)
c:RegisterEffect(e4)
end
c22061412.material_setcode=0x8
function c22061412.atkfilter(c)
return c:IsFaceup() and c:IsSetCard(0x3008)
end
......
......@@ -27,6 +27,7 @@ function c22160245.initial_effect(c)
e3:SetCode(EFFECT_PIERCE)
c:RegisterEffect(e3)
end
c22160245.material_setcode=0x8
c22160245.dark_calling=true
function c22160245.splimit(e,se,sp,st)
return st==SUMMON_TYPE_FUSION+0x10
......
......@@ -32,6 +32,7 @@ function c23204029.initial_effect(c)
e3:SetOperation(c23204029.operation)
c:RegisterEffect(e3)
end
c23204029.material_setcode=0x8
function c23204029.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and aux.disfilter1(chkc) end
if chk==0 then return Duel.IsExistingTarget(aux.disfilter1,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
......
......@@ -30,6 +30,7 @@ function c25366484.initial_effect(c)
e3:SetValue(c25366484.atkup)
c:RegisterEffect(e3)
end
c25366484.material_setcode=0x8
function c25366484.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local bc=e:GetHandler():GetBattleTarget()
......
......@@ -48,6 +48,7 @@ function c28677304.initial_effect(c)
e5:SetOperation(c28677304.disop)
c:RegisterEffect(e5)
end
c28677304.material_setcode=0x8
function c28677304.splimit(e,se,sp,st)
return not e:GetHandler():IsLocation(LOCATION_EXTRA)
end
......
......@@ -37,6 +37,7 @@ function c29343734.initial_effect(c)
e5:SetValue(c29343734.val)
c:RegisterEffect(e5)
end
c29343734.material_setcode=0x8
function c29343734.retcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION
end
......
......@@ -19,6 +19,7 @@ function c30757127.initial_effect(c)
e1:SetOperation(c30757127.atkop)
c:RegisterEffect(e1)
end
c30757127.material_setcode=0x8
function c30757127.ffilter(c)
return c:IsFusionAttribute(ATTRIBUTE_DARK) and c:IsType(TYPE_EFFECT)
end
......
......@@ -27,6 +27,7 @@ function c31111109.initial_effect(c)
e3:SetValue(aux.fuslimit)
c:RegisterEffect(e3)
end
c31111109.material_setcode=0x8
function c31111109.ffilter(c,cat)
return c:IsFusionSetCard(cat) and not c:IsHasEffect(6205579)
end
......@@ -97,7 +98,7 @@ function c31111109.copyop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and c:IsFaceup() and tc:IsRelateToEffect(e) then
if Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)~=1 then return end
if Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)~=1 then return end
local code=tc:GetOriginalCode()
local cid=c:CopyEffect(code,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,1)
local e1=Effect.CreateEffect(c)
......
......@@ -19,6 +19,7 @@ function c33574806.initial_effect(c)
e3:SetValue(c33574806.atkup)
c:RegisterEffect(e3)
end
c33574806.material_setcode=0x8
function c33574806.atkup(e,c)
return Duel.GetMatchingGroupCount(Card.IsSetCard,c:GetControler(),LOCATION_GRAVE,0,nil,0x3008)*100
end
......@@ -22,6 +22,7 @@ function c35809262.initial_effect(c)
e2:SetOperation(c35809262.damop)
c:RegisterEffect(e2)
end
c35809262.material_setcode=0x8
function c35809262.damcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local bc=c:GetBattleTarget()
......
......@@ -20,6 +20,7 @@ function c3642509.initial_effect(c)
e3:SetValue(aux.fuslimit)
c:RegisterEffect(e3)
end
c3642509.material_setcode=0x8
function c3642509.atkcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION
end
......
......@@ -35,6 +35,7 @@ function c40854197.initial_effect(c)
e5:SetValue(c40854197.atkup)
c:RegisterEffect(e5)
end
c40854197.material_setcode=0x8
function c40854197.atkfilter(c)
return c:IsFaceup() and c:GetCode()~=40854197 and c:IsAttribute(ATTRIBUTE_WATER)
end
......
......@@ -17,3 +17,4 @@ function c41436536.initial_effect(c)
e2:SetValue(1)
c:RegisterEffect(e2)
end
c41436536.material_setcode=0x8
......@@ -33,6 +33,7 @@ function c41517968.initial_effect(c)
e4:SetOperation(c41517968.desop)
c:RegisterEffect(e4)
end
c41517968.material_setcode=0x8
function c41517968.poscon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler()==Duel.GetAttacker() and e:GetHandler():IsRelateToBattle()
end
......
......@@ -14,6 +14,7 @@ function c45170821.initial_effect(c)
e2:SetOperation(c45170821.valop)
c:RegisterEffect(e2)
end
c45170821.material_setcode=0x8
function c45170821.sfilter(c)
return c:IsFaceup() and c:IsSetCard(0x8)
end
......
......@@ -23,6 +23,7 @@ function c46759931.initial_effect(c)
e3:SetCode(EFFECT_CANNOT_DIRECT_ATTACK)
c:RegisterEffect(e3)
end
c46759931.material_setcode=0x8
function c46759931.regcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_FUSION
end
......
......@@ -36,6 +36,7 @@ function c47737087.initial_effect(c)
e5:SetValue(c47737087.atkval)
c:RegisterEffect(e5)
end
c47737087.material_setcode=0x8
function c47737087.dacon(e)
return e:GetHandler():IsDefensePos()
end
......
......@@ -48,6 +48,7 @@ function c48996569.initial_effect(c)
e5:SetOperation(c48996569.thop)
c:RegisterEffect(e5)
end
c48996569.material_setcode=0x8
function c48996569.splimit(e,se,sp,st)
return not e:GetHandler():IsLocation(LOCATION_EXTRA)
end
......
......@@ -56,6 +56,7 @@ function c49352945.initial_effect(c)
e6:SetOperation(c49352945.tdop)
c:RegisterEffect(e6)
end
c49352945.material_setcode=0x8
function c49352945.splimit(e,se,sp,st)
return not e:GetHandler():IsLocation(LOCATION_EXTRA)
end
......
......@@ -32,6 +32,7 @@ function c50282757.initial_effect(c)
e3:SetValue(c50282757.indesval)
c:RegisterEffect(e3)
end
c50282757.material_setcode=0x8
c50282757.dark_calling=true
function c50282757.splimit(e,se,sp,st)
return st==SUMMON_TYPE_FUSION+0x10
......
......@@ -30,6 +30,7 @@ function c5128859.initial_effect(c)
e3:SetOperation(c5128859.desop)
c:RegisterEffect(e3)
end
c5128859.material_setcode=0x8
function c5128859.splimit(e,se,sp,st)
return not e:GetHandler():IsLocation(LOCATION_EXTRA)
end
......
......@@ -11,3 +11,4 @@ function c52031567.initial_effect(c)
e1:SetValue(aux.fuslimit)
c:RegisterEffect(e1)
end
c52031567.material_setcode=0x8
......@@ -48,6 +48,7 @@ function c55171412.initial_effect(c)
e5:SetOperation(c55171412.desop)
c:RegisterEffect(e5)
end
c55171412.material_setcode=0x8
function c55171412.splimit(e,se,sp,st)
return not e:GetHandler():IsLocation(LOCATION_EXTRA)
end
......
......@@ -26,6 +26,7 @@ function c58332301.initial_effect(c)
e3:SetOperation(c58332301.posop)
c:RegisterEffect(e3)
end
c58332301.material_setcode=0x8
c58332301.dark_calling=true
function c58332301.splimit(e,se,sp,st)
return st==SUMMON_TYPE_FUSION+0x10
......
......@@ -27,6 +27,7 @@ function c60493189.initial_effect(c)
e3:SetOperation(c60493189.desop)
c:RegisterEffect(e3)
end
c60493189.material_setcode=0x8
function c60493189.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
......
......@@ -23,6 +23,7 @@ function c61204971.initial_effect(c)
e2:SetOperation(c61204971.desop)
c:RegisterEffect(e2)
end
c61204971.material_setcode=0x8
function c61204971.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
......
......@@ -20,6 +20,7 @@ function c68745629.initial_effect(c)
e2:SetValue(1000)
c:RegisterEffect(e2)
end
c68745629.material_setcode=0x8
function c68745629.atkcon(e)
local ph=Duel.GetCurrentPhase()
if ph~=PHASE_DAMAGE and ph~=PHASE_DAMAGE_CAL then return false end
......
......@@ -35,6 +35,7 @@ function c72926163.initial_effect(c)
e5:SetCode(EFFECT_NO_BATTLE_DAMAGE)
c:RegisterEffect(e5)
end
c72926163.material_setcode=0x8
function c72926163.valcheck(e,c)
local g=c:GetMaterial()
local atk=0
......
......@@ -20,6 +20,7 @@ function c74711057.initial_effect(c)
e2:SetValue(aux.fuslimit)
c:RegisterEffect(e2)
end
c74711057.material_setcode=0x8
function c74711057.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,e:GetHandler(),0x3008) end
local g=Duel.SelectReleaseGroup(tp,Card.IsSetCard,1,1,e:GetHandler(),0x3008)
......
......@@ -29,6 +29,7 @@ function c76263644.initial_effect(c)
e3:SetOperation(c76263644.spop)
c:RegisterEffect(e3)
end
c76263644.material_setcode=0x8
function c76263644.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetActivityCount(tp,ACTIVITY_BATTLE_PHASE)==0 end
local e1=Effect.CreateEffect(e:GetHandler())
......
......@@ -54,6 +54,7 @@ function c78512663.initial_effect(c)
e6:SetOperation(c78512663.thop)
c:RegisterEffect(e6)
end
c78512663.material_setcode=0x8
function c78512663.splimit(e,se,sp,st)
return not e:GetHandler():IsLocation(LOCATION_EXTRA)
end
......
......@@ -22,6 +22,7 @@ function c81003500.initial_effect(c)
e2:SetOperation(c81003500.operation)
c:RegisterEffect(e2)
end
c81003500.material_setcode=0x8
function c81003500.condition(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION
end
......
......@@ -22,6 +22,7 @@ function c81197327.initial_effect(c)
e2:SetOperation(c81197327.recop)
c:RegisterEffect(e2)
end
c81197327.material_setcode=0x8
function c81197327.reccon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local bc=c:GetBattleTarget()
......
......@@ -45,6 +45,7 @@ function c81566151.initial_effect(c)
e5:SetValue(c81566151.atkval)
c:RegisterEffect(e5)
end
c81566151.material_setcode=0x8
function c81566151.splimit(e,se,sp,st)
return not e:GetHandler():IsLocation(LOCATION_EXTRA)
end
......
......@@ -21,6 +21,7 @@ function c83121692.initial_effect(c)
e1:SetOperation(c83121692.operation)
c:RegisterEffect(e1)
end
c83121692.material_setcode=0x8
function c83121692.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGraveAsCost,tp,LOCATION_ONFIELD,0,1,e:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
......
......@@ -49,6 +49,7 @@ function c85507811.initial_effect(c)
e5:SetOperation(c85507811.desop)
c:RegisterEffect(e5)
end
c85507811.material_setcode=0x8
function c85507811.splimit(e,se,sp,st)
return not e:GetHandler():IsLocation(LOCATION_EXTRA)
end
......
......@@ -42,6 +42,7 @@ function c86346643.initial_effect(c)
e4:SetOperation(c86346643.tdop3)
c:RegisterEffect(e4)
end
c86346643.material_setcode=0x8
function c86346643.cfilter1(c)
return c:IsAbleToGraveAsCost()
end
......
......@@ -36,6 +36,7 @@ function c86676862.initial_effect(c)
e6:SetValue(1)
c:RegisterEffect(e6)
end
c86676862.material_setcode=0x8
c86676862.dark_calling=true
function c86676862.splimit(e,se,sp,st)
return st==SUMMON_TYPE_FUSION+0x10
......
......@@ -25,6 +25,7 @@ function c88820235.initial_effect(c)
e3:SetValue(c88820235.atkup)
c:RegisterEffect(e3)
end
c88820235.material_setcode=0x8
function c88820235.atkup(e,c)
return Duel.GetMatchingGroupCount(Card.IsSetCard,c:GetControler(),LOCATION_GRAVE,0,nil,0x3008)*300
end
......@@ -28,6 +28,7 @@ function c90579153.initial_effect(c)
e2:SetOperation(c90579153.desop)
c:RegisterEffect(e2)
end
c90579153.material_setcode=0x8
function c90579153.filter(c)
return c:IsSetCard(0xc008) and c:IsLevelBelow(4) and c:GetAttack()>0
end
......
......@@ -42,6 +42,7 @@ function c95486586.initial_effect(c)
e4:SetOperation(c95486586.spop)
c:RegisterEffect(e4)
end
c95486586.material_setcode=0x8
function c95486586.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsFaceup() then
......
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