Commit 37f6152e authored by DailyShana's avatar DailyShana

fix

parent 9d084b8a
......@@ -14,7 +14,7 @@ function c19048328.initial_effect(c)
e2:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCondition(c19048328.condition)
e2:SetCondition(c19048328.regcon)
e2:SetOperation(c19048328.regop)
e2:SetLabelObject(e1)
c:RegisterEffect(e2)
......@@ -51,7 +51,7 @@ function c19048328.matcheck(e,c)
end
e:SetLabel(att)
end
function c19048328.condition(e)
function c19048328.regcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
end
function c19048328.regop(e,tp,eg,ep,ev,re,r,rp)
......@@ -63,7 +63,6 @@ function c19048328.regop(e,tp,eg,ep,ev,re,r,rp)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(0,1)
e1:SetReset(RESET_EVENT+0x1fe0000)
e1:SetCondition(c19048328.condition)
e1:SetValue(c19048328.aclimit)
e1:SetLabelObject(e:GetLabelObject())
c:RegisterEffect(e1)
......
......@@ -52,10 +52,12 @@ function c42237854.activate(e,tp,eg,ep,ev,re,r,rp)
or not Duel.IsPlayerCanSpecialSummonMonster(tp,42237854,0,0x21,0,0,4,RACE_MACHINE,ATTRIBUTE_EARTH) then return end
c:AddMonsterAttribute(0,0,0,0,0)
Duel.SpecialSummonStep(c,0,tp,tp,true,false,POS_FACEUP)
--atk
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_EQUIP)
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_OWNER_RELATE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetReset(RESET_EVENT+0x1fe0000)
e1:SetValue(c42237854.atkval)
c:RegisterEffect(e1)
......
......@@ -32,6 +32,7 @@ function c43959432.activate(e,tp,eg,ep,ev,re,r,rp)
c:AddMonsterAttribute(0,0,0,0,0)
Duel.SpecialSummonStep(c,0,tp,tp,true,false,POS_FACEUP)
c:TrapMonsterComplete(TYPE_EFFECT)
--position
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_POSITION)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
......@@ -40,6 +41,7 @@ function c43959432.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetOperation(c43959432.posop)
e1:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e1,true)
--atk
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_UPDATE_ATTACK)
......
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