Commit 12890be9 authored by VanillaSalt's avatar VanillaSalt

fix

parent 0518bb18
......@@ -8,15 +8,20 @@ function c35952884.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(aux.FALSE)
c:RegisterEffect(e1)
--multi attack
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCountLimit(1)
e2:SetCondition(c35952884.mtcon)
e2:SetOperation(c35952884.mtop)
c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_MATERIAL_CHECK)
e3:SetValue(c35952884.valcheck)
e3:SetLabelObject(e2)
c:RegisterEffect(e3)
--negate
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(35952884,0))
......@@ -51,18 +56,23 @@ end
function c35952884.mfilter(c)
return not c:IsType(TYPE_TUNER)
end
function c35952884.valcheck(e,c)
local g=c:GetMaterial()
local ct=g:FilterCount(c35952884.mfilter,nil)
e:GetLabelObject():SetLabel(ct)
end
function c35952884.mtcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO and e:GetLabel()>0
end
function c35952884.mtop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local mg=c:GetMaterial()
local ct=mg:FilterCount(c35952884.mfilter,nil)
if bit.band(r,REASON_SYNCHRO)~=0 and ct>0 then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_EXTRA_ATTACK)
e1:SetReset(RESET_EVENT+0x1ff0000)
e1:SetValue(ct-1)
c:RegisterEffect(e1)
end
local ct=e:GetLabel()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_EXTRA_ATTACK)
e1:SetReset(RESET_EVENT+0x1ff0000)
e1:SetValue(ct-1)
c:RegisterEffect(e1)
end
function c35952884.discon(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) and Duel.IsChainNegatable(ev)
......@@ -80,14 +90,13 @@ function c35952884.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(eg,REASON_EFFECT)
end
end
function c35952884.sumcon(e,tp,eg,ep,ev,re,r,rp,chk)
function c35952884.sumcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousPosition(POS_FACEUP) and e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
end
function c35952884.filter(c,e,tp)
return c:GetCode()==24696097 and c:IsCanBeSpecialSummoned(e,0,tp,false,true)
end
function c35952884.sumtg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c35952884.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
......
......@@ -7,7 +7,6 @@ function c36378213.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetCode(EVENT_TO_HAND)
e1:SetRange(LOCATION_MZONE)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetTarget(c36378213.target)
e1:SetOperation(c36378213.activate)
c:RegisterEffect(e1)
......
......@@ -34,7 +34,7 @@ function c75304793.initial_effect(c)
c:RegisterEffect(e4)
end
function c75304793.ctcon(e,tp,eg,ep,ev,re,r,rp)
return re and re:GetHandler():IsSetCard(0x66)
return re and re:GetHandler():IsSetCard(0x66) and not re:IsHasType(EFFECT_TYPE_ACTIVATE)
end
function c75304793.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x35,1)
......
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