Commit 2b4777cc authored by VanillaSalt's avatar VanillaSalt

fix

parent a3274347
...@@ -23,7 +23,7 @@ function c16960351.rfilter(c,e,tp) ...@@ -23,7 +23,7 @@ function c16960351.rfilter(c,e,tp)
and Duel.IsExistingMatchingCard(c16960351.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp,lv) and Duel.IsExistingMatchingCard(c16960351.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp,lv)
end end
function c16960351.spfilter(c,e,tp,lv) function c16960351.spfilter(c,e,tp,lv)
return c:GetLevel()==lv and c:IsRace(RACE_PHANTOMDRAGON) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:GetLevel()==lv and c:IsRace(RACE_WYRM) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c16960351.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c16960351.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c16960351.rfilter,1,nil,e,tp) end if chk==0 then return Duel.CheckReleaseGroup(tp,c16960351.rfilter,1,nil,e,tp) end
......
...@@ -15,7 +15,7 @@ function c24218047.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -15,7 +15,7 @@ function c24218047.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsLocation(LOCATION_GRAVE) and e:GetHandler():IsReason(REASON_BATTLE) return e:GetHandler():IsLocation(LOCATION_GRAVE) and e:GetHandler():IsReason(REASON_BATTLE)
end end
function c24218047.filter(c,e,tp) function c24218047.filter(c,e,tp)
return c:IsDefenceBelow(1500) and c:IsRace(RACE_PHANTOMDRAGON) return c:IsDefenceBelow(1500) and c:IsRace(RACE_WYRM)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c24218047.target(e,tp,eg,ep,ev,re,r,rp,chk) function c24218047.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -46,7 +46,7 @@ function c39122311.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,7 +46,7 @@ function c39122311.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CHANGE_RACE) e1:SetCode(EFFECT_CHANGE_RACE)
e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetReset(RESET_EVENT+0x1fe0000)
e1:SetValue(RACE_PHANTOMDRAGON) e1:SetValue(RACE_WYRM)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
end end
......
...@@ -65,7 +65,7 @@ function c43202238.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,7 +65,7 @@ function c43202238.spcon(e,tp,eg,ep,ev,re,r,rp)
and c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsPreviousLocation(LOCATION_ONFIELD)
end end
function c43202238.spfilter(c,e,tp) function c43202238.spfilter(c,e,tp)
return c:IsRace(RACE_PHANTOMDRAGON) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_WYRM) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c43202238.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c43202238.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -11,7 +11,7 @@ function c43912676.initial_effect(c) ...@@ -11,7 +11,7 @@ function c43912676.initial_effect(c)
e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e2:SetTarget(aux.TargetBoolFunction(Card.IsRace,RACE_PHANTOMDRAGON)) e2:SetTarget(aux.TargetBoolFunction(Card.IsRace,RACE_WYRM))
e2:SetValue(300) e2:SetValue(300)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=e2:Clone() local e3=e2:Clone()
...@@ -31,7 +31,7 @@ function c43912676.initial_effect(c) ...@@ -31,7 +31,7 @@ function c43912676.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c43912676.cfilter(c) function c43912676.cfilter(c)
return c:IsRace(RACE_PHANTOMDRAGON) and c:IsAbleToRemoveAsCost() return c:IsRace(RACE_WYRM) and c:IsAbleToRemoveAsCost()
end end
function c43912676.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c43912676.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c43912676.cfilter,tp,LOCATION_GRAVE,0,3,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c43912676.cfilter,tp,LOCATION_GRAVE,0,3,nil) end
......
--輝竜星-ショウフク --輝竜星-ショウフク
function c83755611.initial_effect(c) function c83755611.initial_effect(c)
--synchro summon --synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(Card.IsRace,RACE_PHANTOMDRAGON),1) aux.AddSynchroProcedure(c,nil,aux.NonTuner(Card.IsRace,RACE_WYRM),1)
c:EnableReviveLimit() c:EnableReviveLimit()
--mat check --mat check
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -34,7 +34,7 @@ function c83755611.initial_effect(c) ...@@ -34,7 +34,7 @@ function c83755611.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c83755611.matcheck(e,c) function c83755611.matcheck(e,c)
local ct=c:GetMaterial():Filter(Card.IsRace,nil,RACE_PHANTOMDRAGON):GetClassCount(Card.GetOriginalAttribute) local ct=c:GetMaterial():Filter(Card.IsRace,nil,RACE_WYRM):GetClassCount(Card.GetOriginalAttribute)
e:SetLabel(ct) e:SetLabel(ct)
end end
function c83755611.tdcon(e,tp,eg,ep,ev,re,r,rp) function c83755611.tdcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -29,11 +29,11 @@ function c86559484.cfilter(c,rac) ...@@ -29,11 +29,11 @@ function c86559484.cfilter(c,rac)
end end
function c86559484.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c86559484.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c86559484.cfilter,tp,LOCATION_GRAVE,0,1,nil,RACE_DRAGON) if chk==0 then return Duel.IsExistingMatchingCard(c86559484.cfilter,tp,LOCATION_GRAVE,0,1,nil,RACE_DRAGON)
and Duel.IsExistingMatchingCard(c86559484.cfilter,tp,LOCATION_GRAVE,0,1,nil,RACE_PHANTOMDRAGON) end and Duel.IsExistingMatchingCard(c86559484.cfilter,tp,LOCATION_GRAVE,0,1,nil,RACE_WYRM) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g1=Duel.SelectMatchingCard(tp,c86559484.cfilter,tp,LOCATION_GRAVE,0,1,1,nil,RACE_DRAGON) local g1=Duel.SelectMatchingCard(tp,c86559484.cfilter,tp,LOCATION_GRAVE,0,1,1,nil,RACE_DRAGON)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g2=Duel.SelectMatchingCard(tp,c86559484.cfilter,tp,LOCATION_GRAVE,0,1,1,nil,RACE_PHANTOMDRAGON) local g2=Duel.SelectMatchingCard(tp,c86559484.cfilter,tp,LOCATION_GRAVE,0,1,1,nil,RACE_WYRM)
g1:Merge(g2) g1:Merge(g2)
Duel.Remove(g1,POS_FACEUP,REASON_COST) Duel.Remove(g1,POS_FACEUP,REASON_COST)
end end
......
...@@ -20,12 +20,12 @@ function c88724332.initial_effect(c) ...@@ -20,12 +20,12 @@ function c88724332.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c88724332.target(e,c) function c88724332.target(e,c)
return c:IsPosition(POS_FACEUP_ATTACK) and not c:IsRace(RACE_PHANTOMDRAGON) return c:IsPosition(POS_FACEUP_ATTACK) and not c:IsRace(RACE_WYRM)
and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL
and c:IsPreviousLocation(LOCATION_DECK+LOCATION_EXTRA) and c:IsPreviousLocation(LOCATION_DECK+LOCATION_EXTRA)
end end
function c88724332.deftg(e,c) function c88724332.deftg(e,c)
return c:IsFaceup() and not c:IsRace(RACE_PHANTOMDRAGON) return c:IsFaceup() and not c:IsRace(RACE_WYRM)
and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL
and c:IsPreviousLocation(LOCATION_DECK+LOCATION_EXTRA) and c:IsPreviousLocation(LOCATION_DECK+LOCATION_EXTRA)
end end
......
...@@ -79,7 +79,7 @@ RACE_REPTILE =0x80000 -- ...@@ -79,7 +79,7 @@ RACE_REPTILE =0x80000 --
RACE_PSYCHO =0x100000 -- RACE_PSYCHO =0x100000 --
RACE_DEVINE =0x200000 -- RACE_DEVINE =0x200000 --
RACE_CREATORGOD =0x400000 -- RACE_CREATORGOD =0x400000 --
RACE_PHANTOMDRAGON =0x800000 -- RACE_WYRM =0x800000 --
--Reason --Reason
REASON_DESTROY =0x1 -- REASON_DESTROY =0x1 --
REASON_RELEASE =0x2 -- REASON_RELEASE =0x2 --
......
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