Commit 24f8f17c authored by nekrozar's avatar nekrozar Committed by DailyShana

errata Y-Dragon Head,Z-Metal Tank,Heavy Mech Support Platform (#449)

parent d1433d18
...@@ -32,7 +32,6 @@ function c23265594.initial_effect(c) ...@@ -32,7 +32,6 @@ function c23265594.initial_effect(c)
e4:SetType(EFFECT_TYPE_EQUIP) e4:SetType(EFFECT_TYPE_EQUIP)
e4:SetCode(EFFECT_UPDATE_DEFENSE) e4:SetCode(EFFECT_UPDATE_DEFENSE)
e4:SetValue(500) e4:SetValue(500)
e4:SetCondition(c23265594.uncon)
c:RegisterEffect(e4) c:RegisterEffect(e4)
--destroy sub --destroy sub
local e5=Effect.CreateEffect(c) local e5=Effect.CreateEffect(c)
...@@ -54,10 +53,10 @@ function c23265594.uncon(e) ...@@ -54,10 +53,10 @@ function c23265594.uncon(e)
return e:GetHandler():IsStatus(STATUS_UNION) return e:GetHandler():IsStatus(STATUS_UNION)
end end
function c23265594.eqlimit(e,c) function c23265594.eqlimit(e,c)
return c:IsRace(RACE_MACHINE) return c:IsRace(RACE_MACHINE) or e:GetHandler():GetEquipTarget()==c
end end
function c23265594.filter(c) function c23265594.filter(c)
return c:IsFaceup() and c:IsRace(RACE_MACHINE) and c:GetUnionCount()==0 return c:IsFaceup() and c:IsRace(RACE_MACHINE)
end end
function c23265594.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c23265594.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c23265594.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c23265594.filter(chkc) end
...@@ -88,7 +87,7 @@ end ...@@ -88,7 +87,7 @@ end
function c23265594.spop(e,tp,eg,ep,ev,re,r,rp) function c23265594.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE) Duel.SendtoGrave(c,REASON_RULE)
end end
......
...@@ -32,7 +32,6 @@ function c64500000.initial_effect(c) ...@@ -32,7 +32,6 @@ function c64500000.initial_effect(c)
e4:SetType(EFFECT_TYPE_EQUIP) e4:SetType(EFFECT_TYPE_EQUIP)
e4:SetCode(EFFECT_UPDATE_DEFENSE) e4:SetCode(EFFECT_UPDATE_DEFENSE)
e4:SetValue(600) e4:SetValue(600)
e4:SetCondition(c64500000.uncon)
c:RegisterEffect(e4) c:RegisterEffect(e4)
--destroy sub --destroy sub
local e5=Effect.CreateEffect(c) local e5=Effect.CreateEffect(c)
...@@ -54,13 +53,13 @@ function c64500000.uncon(e) ...@@ -54,13 +53,13 @@ function c64500000.uncon(e)
return e:GetHandler():IsStatus(STATUS_UNION) return e:GetHandler():IsStatus(STATUS_UNION)
end end
function c64500000.repval(e,re,r,rp) function c64500000.repval(e,re,r,rp)
return bit.band(r,REASON_BATTLE)~=0 return bit.band(r,REASON_BATTLE+REASON_EFFECT)~=0
end end
function c64500000.eqlimit(e,c) function c64500000.eqlimit(e,c)
return c:IsCode(62651957,65622692) return c:IsCode(62651957,65622692) or e:GetHandler():GetEquipTarget()==c
end end
function c64500000.filter(c) function c64500000.filter(c)
return c:IsFaceup() and c:IsCode(62651957,65622692) and c:GetUnionCount()==0 return c:IsFaceup() and c:IsCode(62651957,65622692)
end end
function c64500000.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c64500000.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c64500000.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c64500000.filter(chkc) end
...@@ -91,7 +90,7 @@ end ...@@ -91,7 +90,7 @@ end
function c64500000.spop(e,tp,eg,ep,ev,re,r,rp) function c64500000.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE) Duel.SendtoGrave(c,REASON_RULE)
end end
......
...@@ -25,7 +25,6 @@ function c65622692.initial_effect(c) ...@@ -25,7 +25,6 @@ function c65622692.initial_effect(c)
e3:SetType(EFFECT_TYPE_EQUIP) e3:SetType(EFFECT_TYPE_EQUIP)
e3:SetCode(EFFECT_UPDATE_ATTACK) e3:SetCode(EFFECT_UPDATE_ATTACK)
e3:SetValue(400) e3:SetValue(400)
e3:SetCondition(c65622692.uncon)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--Def up --Def up
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
...@@ -54,13 +53,13 @@ function c65622692.uncon(e) ...@@ -54,13 +53,13 @@ function c65622692.uncon(e)
return e:GetHandler():IsStatus(STATUS_UNION) return e:GetHandler():IsStatus(STATUS_UNION)
end end
function c65622692.repval(e,re,r,rp) function c65622692.repval(e,re,r,rp)
return bit.band(r,REASON_BATTLE)~=0 return bit.band(r,REASON_BATTLE+REASON_EFFECT)~=0
end end
function c65622692.eqlimit(e,c) function c65622692.eqlimit(e,c)
return c:IsCode(62651957) return c:IsCode(62651957) or e:GetHandler():GetEquipTarget()==c
end end
function c65622692.filter(c) function c65622692.filter(c)
return c:IsFaceup() and c:IsCode(62651957) and c:GetUnionCount()==0 return c:IsFaceup() and c:IsCode(62651957)
end end
function c65622692.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c65622692.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c65622692.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c65622692.filter(chkc) end
...@@ -91,7 +90,7 @@ end ...@@ -91,7 +90,7 @@ end
function c65622692.spop(e,tp,eg,ep,ev,re,r,rp) function c65622692.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_ATTACK)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 if Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then and c:IsCanBeSpecialSummoned(e,0,tp,true,false) then
Duel.SendtoGrave(c,REASON_RULE) Duel.SendtoGrave(c,REASON_RULE)
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