Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions c12081875.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function c12081875.effcon(e)
end
function c12081875.efffilter(c,e,tp,eg,ep,ev,re,r,rp)
if not (c:IsSetCard(0x11c) and c:IsType(TYPE_MONSTER) and c:IsAbleToDeck() and (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup())) then return false end
local te=c.discard_effect
local te=c.thunder_dragon_discard_effect
if not te then return false end
local tg=te:GetTarget()
return not tg or tg and tg(e,tp,eg,ep,ev,re,r,rp,0)
Expand All @@ -44,14 +44,14 @@ function c12081875.efftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.ClearTargetCard()
tc:CreateEffectRelation(e)
e:SetLabelObject(tc)
local te=tc.discard_effect
local te=tc.thunder_dragon_discard_effect
local tg=te:GetTarget()
if tg then tg(e,tp,eg,ep,ev,re,r,rp,1) end
end
function c12081875.effop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
if tc:IsRelateToEffect(e) then
local te=tc.discard_effect
local te=tc.thunder_dragon_discard_effect
local op=te:GetOperation()
if op then op(e,tp,eg,ep,ev,re,r,rp) end
Duel.BreakEffect()
Expand Down
2 changes: 1 addition & 1 deletion c20318029.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function c20318029.initial_effect(c)
e1:SetTarget(c20318029.atktg)
e1:SetOperation(c20318029.atkop)
c:RegisterEffect(e1)
c20318029.discard_effect=e1
c20318029.thunder_dragon_discard_effect=e1
--search
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(20318029,1))
Expand Down
2 changes: 1 addition & 1 deletion c26400609.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function c26400609.initial_effect(c)
e4:SetTarget(c26400609.thtg)
e4:SetOperation(c26400609.thop)
c:RegisterEffect(e4)
c26400609.Dragon_Ruler_handes_effect=e3
c26400609.dragon_ruler_discard_effect=e3
end
function c26400609.rfilter(c)
return (c:IsRace(RACE_DRAGON) or c:IsAttribute(ATTRIBUTE_WATER)) and c:IsAbleToRemoveAsCost()
Expand Down
2 changes: 1 addition & 1 deletion c27268998.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ end
function s.mfilter(ft,lv,race,att)
return ft==1 and lv>=5 and bit.band(race,RACE_FIEND)==RACE_FIEND
end
s.Metallization_material=s.mfilter
s.metalmorph_material=s.mfilter
function s.setcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not e:GetHandler():IsPublic() end
end
Expand Down
2 changes: 1 addition & 1 deletion c27704731.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ end
function s.mfilter(ft,lv,race,att)
return ft==1 and lv>=5 and race&RACE_WARRIOR~=0
end
s.Metallization_material=s.mfilter
s.metalmorph_material=s.mfilter
function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not e:GetHandler():IsPublic() end
end
Expand Down
2 changes: 1 addition & 1 deletion c29596581.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function c29596581.initial_effect(c)
e1:SetTarget(c29596581.target)
e1:SetOperation(c29596581.operation)
c:RegisterEffect(e1)
c29596581.discard_effect=e1
c29596581.thunder_dragon_discard_effect=e1
--spsummon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(29596581,1))
Expand Down
2 changes: 1 addition & 1 deletion c31786629.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function c31786629.initial_effect(c)
e1:SetTarget(c31786629.target)
e1:SetOperation(c31786629.operation)
c:RegisterEffect(e1)
c31786629.discard_effect=e1
c31786629.thunder_dragon_discard_effect=e1
end
function c31786629.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
Expand Down
4 changes: 2 additions & 2 deletions c4965193.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function s.initial_effect(c)
end
function s.efffilter(c,e,tp,eg,ep,ev,re,r,rp)
if not (c:IsSetCard(0x1c4) and c:IsLevel(7) and c:IsAbleToGraveAsCost()) then return false end
local te=c.Dragon_Ruler_handes_effect
local te=c.dragon_ruler_discard_effect
if not te then return false end
local tg=te:GetTarget()
return not tg or tg(e,tp,eg,ep,ev,re,r,rp,0,nil,c)
Expand All @@ -44,7 +44,7 @@ function s.copytg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,s.efffilter,tp,LOCATION_DECK,0,1,1,nil,e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
local te=tc.Dragon_Ruler_handes_effect
local te=tc.dragon_ruler_discard_effect
Duel.SendtoGrave(g,REASON_COST)
c:RemoveOverlayCard(tp,1,1,REASON_COST)
e:SetProperty(te:GetProperty())
Expand Down
2 changes: 1 addition & 1 deletion c53804307.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function c53804307.initial_effect(c)
e4:SetTarget(c53804307.thtg)
e4:SetOperation(c53804307.thop)
c:RegisterEffect(e4)
c53804307.Dragon_Ruler_handes_effect=e3
c53804307.dragon_ruler_discard_effect=e3
end
function c53804307.rfilter(c)
return (c:IsRace(RACE_DRAGON) or c:IsAttribute(ATTRIBUTE_FIRE)) and c:IsAbleToRemoveAsCost()
Expand Down
2 changes: 1 addition & 1 deletion c56713174.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function c56713174.initial_effect(c)
e1:SetTarget(c56713174.target)
e1:SetOperation(c56713174.operation)
c:RegisterEffect(e1)
c56713174.discard_effect=e1
c56713174.thunder_dragon_discard_effect=e1
--search thunder dragon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(56713174,1))
Expand Down
2 changes: 1 addition & 1 deletion c80870883.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ end
function s.mfilter(ft,lv,race,att)
return ft==1 and lv>=5 and bit.band(race,RACE_DRAGON)==RACE_DRAGON
end
s.Metallization_material=s.mfilter
s.metalmorph_material=s.mfilter
function s.setcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not e:GetHandler():IsPublic() end
end
Expand Down
2 changes: 1 addition & 1 deletion c83107873.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function c83107873.initial_effect(c)
e1:SetTarget(c83107873.target)
e1:SetOperation(c83107873.operation)
c:RegisterEffect(e1)
c83107873.discard_effect=e1
c83107873.thunder_dragon_discard_effect=e1
--shuffle and draw
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(83107873,1))
Expand Down
2 changes: 1 addition & 1 deletion c89399912.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function c89399912.initial_effect(c)
e4:SetTarget(c89399912.thtg)
e4:SetOperation(c89399912.thop)
c:RegisterEffect(e4)
c89399912.Dragon_Ruler_handes_effect=e3
c89399912.dragon_ruler_discard_effect=e3
end
function c89399912.rfilter(c)
return (c:IsRace(RACE_DRAGON) or c:IsAttribute(ATTRIBUTE_WIND)) and c:IsAbleToRemoveAsCost()
Expand Down
4 changes: 2 additions & 2 deletions c89812483.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function s.filter1(c,e,tp)
end
function s.filter2(c,e,tp,ft,lv,race,att)
if not (not c:IsSummonableCard() and aux.IsCodeListed(c,89812483) and c:IsType(TYPE_MONSTER)) then return false end
local proc=e:GetHandler():IsCode(id) and c.Metallization_material and c.Metallization_material(ft,lv,race,att)
local proc=e:GetHandler():IsCode(id) and c.metalmorph_material and c.metalmorph_material(ft,lv,race,att)
return c:IsCanBeSpecialSummoned(e,0,tp,proc,proc,POS_FACEUP)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
Expand All @@ -49,7 +49,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tc=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.filter2),tp,LOCATION_DECK+LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp,e:GetLabel()):GetFirst()
if tc and Duel.SpecialSummon(tc,0,tp,tp,true,true,POS_FACEUP)>0 then
local proc=c:IsCode(id) and tc.Metallization_material and tc.Metallization_material(ft,lv,race,att)
local proc=c:IsCode(id) and tc.metalmorph_material and tc.metalmorph_material(ft,lv,race,att)
if proc then tc:CompleteProcedure() end
if ft==1 and c:IsOnField() and c:IsRelateToEffect(e) and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
Duel.BreakEffect()
Expand Down
2 changes: 1 addition & 1 deletion c90411554.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function c90411554.initial_effect(c)
e4:SetTarget(c90411554.thtg)
e4:SetOperation(c90411554.thop)
c:RegisterEffect(e4)
c90411554.Dragon_Ruler_handes_effect=e3
c90411554.dragon_ruler_discard_effect=e3
end
function c90411554.rfilter(c)
return (c:IsRace(RACE_DRAGON) or c:IsAttribute(ATTRIBUTE_EARTH)) and c:IsAbleToRemoveAsCost()
Expand Down