Commit 5a5923e6 authored by salix5's avatar salix5

fix

parent 608efdb8
...@@ -15,13 +15,6 @@ function c74506079.initial_effect(c) ...@@ -15,13 +15,6 @@ function c74506079.initial_effect(c)
e2:SetCode(EFFECT_MATERIAL_CHECK) e2:SetCode(EFFECT_MATERIAL_CHECK)
e2:SetValue(c74506079.matcheck) e2:SetValue(c74506079.matcheck)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetCondition(c74506079.regcon)
e3:SetOperation(c74506079.regop)
e3:SetLabelObject(e2)
c:RegisterEffect(e3)
end end
function c74506079.ffilter(c) function c74506079.ffilter(c)
return c:IsSetCard(0x3e) and c:IsRace(RACE_REPTILE) return c:IsSetCard(0x3e) and c:IsRace(RACE_REPTILE)
...@@ -36,21 +29,15 @@ function c74506079.fsoperation(e,tp,eg,ep,ev,re,r,rp,gc) ...@@ -36,21 +29,15 @@ function c74506079.fsoperation(e,tp,eg,ep,ev,re,r,rp,gc)
Duel.SetFusionMaterial(eg:FilterSelect(tp,c74506079.ffilter,2,63,nil)) Duel.SetFusionMaterial(eg:FilterSelect(tp,c74506079.ffilter,2,63,nil))
end end
function c74506079.matcheck(e,c) function c74506079.matcheck(e,c)
local g=c:GetMaterial() local ct=c:GetMaterial():GetClassCount(Card.GetCode)
e:SetLabel(g:GetClassCount(Card.GetCode)) if ct>0 then
end local ae=Effect.CreateEffect(c)
function c74506079.regcon(e,tp,eg,ep,ev,re,r,rp) ae:SetType(EFFECT_TYPE_SINGLE)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION ae:SetCode(EFFECT_SET_ATTACK)
end ae:SetValue(ct*500)
function c74506079.regop(e,tp,eg,ep,ev,re,r,rp) ae:SetReset(RESET_EVENT+0xff0000)
local ct=e:GetLabelObject():GetLabel() c:RegisterEffect(ae)
local c=e:GetHandler() end
local ae=Effect.CreateEffect(c)
ae:SetType(EFFECT_TYPE_SINGLE)
ae:SetCode(EFFECT_SET_ATTACK)
ae:SetValue(ct*500)
ae:SetReset(RESET_EVENT+0x1ff0000)
c:RegisterEffect(ae)
if ct>=2 then if ct>=2 then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(74506079,0)) e1:SetDescription(aux.Stringid(74506079,0))
...@@ -61,7 +48,7 @@ function c74506079.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -61,7 +48,7 @@ function c74506079.regop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetTarget(c74506079.sptg) e1:SetTarget(c74506079.sptg)
e1:SetOperation(c74506079.spop) e1:SetOperation(c74506079.spop)
e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetReset(RESET_EVENT+0xfe0000)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
if ct>=4 then if ct>=4 then
...@@ -74,7 +61,7 @@ function c74506079.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -74,7 +61,7 @@ function c74506079.regop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCost(c74506079.tgcost) e1:SetCost(c74506079.tgcost)
e1:SetTarget(c74506079.tgtg) e1:SetTarget(c74506079.tgtg)
e1:SetOperation(c74506079.tgop) e1:SetOperation(c74506079.tgop)
e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetReset(RESET_EVENT+0xfe0000)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
if ct>=6 then if ct>=6 then
...@@ -87,7 +74,7 @@ function c74506079.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -87,7 +74,7 @@ function c74506079.regop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetTarget(c74506079.drtg) e1:SetTarget(c74506079.drtg)
e1:SetOperation(c74506079.drop) e1:SetOperation(c74506079.drop)
e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetReset(RESET_EVENT+0xfe0000)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
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