Skip to content
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion goat/c504700084.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function s.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_TO_GRAVE)
e1:SetCost(aux.bfgcost)
e1:SetCost(Cost.SelfBanish)
e1:SetTarget(s.target)
e1:SetOperation(s.operation)
c:RegisterEffect(e1)
Expand Down
10 changes: 5 additions & 5 deletions unofficial/c100000000.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ end
function s.spcon(e,c)
if c==nil then return true end
local tp=e:GetHandlerPlayer()
local rg1=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil,ATTRIBUTE_LIGHT,RACE_WARRIOR)
local rg2=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil,ATTRIBUTE_DARK,RACE_FIEND)
local rg1=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil,ATTRIBUTE_LIGHT,RACE_WARRIOR)
local rg2=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil,ATTRIBUTE_DARK,RACE_FIEND)
local rg=rg1:Clone()
rg:Merge(rg2)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
Expand All @@ -60,7 +60,7 @@ end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,c)
local c=e:GetHandler()
local g=nil
local rg=Duel.GetMatchingGroup(s.spfilter1,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil,ATTRIBUTE_LIGHT+ATTRIBUTE_DARK,RACE_WARRIOR+RACE_FIEND)
local rg=Duel.GetMatchingGroup(s.spfilter1,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil,ATTRIBUTE_LIGHT+ATTRIBUTE_DARK,RACE_WARRIOR+RACE_FIEND)
local g=aux.SelectUnselectGroup(rg,e,tp,2,2,s.rescon,1,tp,HINTMSG_REMOVE,nil,nil,true)
if #g>0 then
g:KeepAlive()
Expand All @@ -81,12 +81,12 @@ function s.sgcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function s.sgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_HAND+LOCATION_ONFIELD+LOCATION_GRAVE,e:GetHandler())
local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_HAND|LOCATION_ONFIELD|LOCATION_GRAVE,e:GetHandler())
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,#g,0,0)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,0,0,1-tp,#g*500)
end
function s.sgop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_HAND+LOCATION_ONFIELD+LOCATION_GRAVE,e:GetHandler())
local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_HAND|LOCATION_ONFIELD|LOCATION_GRAVE,e:GetHandler())
Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
local og=Duel.GetOperatedGroup()
local ct=og:FilterCount(Card.IsLocation,nil,LOCATION_REMOVED)
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c100000002.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp)
Duel.Damage(p,d,REASON_EFFECT)
end
function s.tdcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
return Duel.IsTurnPlayer(tp)
end
function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c100000003.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function s.lpop(e,tp,eg,ep,ev,re,r,rp)
Duel.Damage(1-tp,dam,REASON_EFFECT)
end
function s.tdcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
return Duel.IsTurnPlayer(tp)
end
function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c100000004.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp)
Duel.Damage(p,bc:GetAttack(),REASON_EFFECT)
end
function s.tdcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
return Duel.IsTurnPlayer(tp)
end
function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c100000005.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp)
end
end
function s.tdcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
return Duel.IsTurnPlayer(tp)
end
function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c100000006.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp)
end
end
function s.tdcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
return Duel.IsTurnPlayer(tp)
end
function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c100000007.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)
end
function s.tdcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
return Duel.IsTurnPlayer(tp)
end
function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c100000008.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function s.lpop(e,tp,eg,ep,ev,re,r,rp)
Duel.SetLP(p,Duel.GetLP(p)/2)
end
function s.tdcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
return Duel.IsTurnPlayer(tp)
end
function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c100000009.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)
end
function s.tdcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
return Duel.IsTurnPlayer(tp)
end
function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Expand Down
4 changes: 2 additions & 2 deletions unofficial/c100000010.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST)
end
function s.filter(c)
return (c:IsSetCard(0x4a) or c:IsCode(74530899) or c:IsCode(8967776)) and c:IsMonster() and c:IsAbleToHand()
return (c:IsSetCard(SET_TIMELORD) or c:IsCode(74530899) or c:IsCode(8967776)) and c:IsMonster() and c:IsAbleToHand()
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil) end
Expand All @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
end
4 changes: 2 additions & 2 deletions unofficial/c100000012.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function s.initial_effect(c)
end
s.listed_series={0x4a}
function s.cfilter(c)
return c:IsSetCard(0x4a) and c:IsMonster() and c:IsDiscardable()
return c:IsSetCard(SET_TIMELORD) and c:IsMonster() and c:IsDiscardable()
end
function s.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) end
Expand All @@ -40,4 +40,4 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Draw(p,d,REASON_EFFECT)
end
end
6 changes: 3 additions & 3 deletions unofficial/c100000013.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function s.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsTurnPlayer(tp)
end
function s.spfilter(c,e,tp)
return c:IsSetCard(0x4a) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsSetCard(SET_TIMELORD) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
Expand All @@ -81,7 +81,7 @@ function s.drcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp
end
function s.cosfilter(c)
return c:IsSetCard(0x4a) and c:IsMonster() and c:IsDiscardable()
return c:IsSetCard(SET_TIMELORD) and c:IsMonster() and c:IsDiscardable()
end
function s.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.cosfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) end
Expand Down Expand Up @@ -118,4 +118,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc)
end
end
end
8 changes: 4 additions & 4 deletions unofficial/c100000014.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(g,REASON_COST)
end
function s.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
return Duel.IsTurnPlayer(tp)
end
function s.spfilter(c,e,tp)
return c:IsSetCard(0x4a) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsSetCard(SET_TIMELORD) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
Expand All @@ -88,7 +88,7 @@ function s.drcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp
end
function s.cosfilter(c)
return c:IsSetCard(0x4a) and c:IsMonster() and c:IsDiscardable()
return c:IsSetCard(SET_TIMELORD) and c:IsMonster() and c:IsDiscardable()
end
function s.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.cosfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) end
Expand Down Expand Up @@ -126,5 +126,5 @@ function s.sephop(e,tp,eg,ep,ev,re,r,rp)
end
end
function s.etarget(e,c)
return c:IsSetCard(0x4a) and c:IsFaceup()
return c:IsSetCard(SET_TIMELORD) and c:IsFaceup()
end
2 changes: 1 addition & 1 deletion unofficial/c100000015.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SetLP(tp,4000,REASON_EFFECT)
end
function s.tdcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
return Duel.IsTurnPlayer(tp)
end
function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Expand Down
6 changes: 3 additions & 3 deletions unofficial/c100000020.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetCountLimit(1)
e1:SetCondition(s.con)
e1:SetOperation(s.op)
if Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_DRAW then
if Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()==PHASE_DRAW then
e1:SetLabel(Duel.GetTurnCount())
e1:SetReset(RESET_PHASE+PHASE_DRAW+RESET_SELF_TURN,2)
else
Expand All @@ -35,7 +35,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function s.con(e,tp,eg,ep,ev,re,r,rp)
return ep==tp and (r&REASON_RULE)~=0 and Duel.GetTurnPlayer()==tp and Duel.GetTurnCount()~=e:GetLabel()
return ep==tp and (r&REASON_RULE)~=0 and Duel.IsTurnPlayer(tp) and Duel.GetTurnCount()~=e:GetLabel()
and Duel.GetCurrentPhase()==PHASE_DRAW
end
function s.op(e,tp,eg,ep,ev,re,r,rp)
Expand All @@ -47,4 +47,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp)
Duel.Damage(1-tp,8000,REASON_EFFECT)
end
Duel.ShuffleHand(tp)
end
end
4 changes: 2 additions & 2 deletions unofficial/c100000021.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function s.initial_effect(c)
c:RegisterEffect(e2)
end
function s.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==1-tp
return Duel.IsTurnPlayer(1-tp)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return true end
Expand All @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end
function s.handcon(e)
return Duel.GetFieldGroupCount(e:GetHandler():GetControler(),LOCATION_MZONE,0)==0
end
end
4 changes: 2 additions & 2 deletions unofficial/c100000022.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function s.splimit(e,se,sp,st)
return (st&SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION
end
function s.atkcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
return Duel.IsTurnPlayer(tp)
end
function s.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Expand All @@ -57,4 +57,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp)
if c==Duel.GetAttacker() and not c:IsStatus(STATUS_BATTLE_DESTROYED) then
c:ResetEffect(RESET_DISABLE,RESET_EVENT)
end
end
end
2 changes: 1 addition & 1 deletion unofficial/c100000024.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
if sc and Duel.SpecialSummon(sc,SUMMON_TYPE_FUSION,tp,tp,true,false,POS_FACEUP)>0 then
sc:CompleteProcedure()
end
end
end
2 changes: 1 addition & 1 deletion unofficial/c100000025.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
local s,id=GetID()
function s.initial_effect(c)
--activate
local e1=Fusion.CreateSummonEff({handler=c,fusfilter=aux.FilterBoolFunction(Card.IsSetCard,0x14c),matfilter=aux.FALSE,extrafil=s.fextra,value=0x20,extraop=Fusion.BanishMaterial,extratg=s.extratg})
local e1=Fusion.CreateSummonEff({handler=c,fusfilter=aux.FilterBoolFunction(Card.IsSetCard,SET_FOSSIL),matfilter=aux.FALSE,extrafil=s.fextra,value=SET_SHIEN,extraop=Fusion.BanishMaterial,extratg=s.extratg})
c:RegisterEffect(e1)
end
s.listed_series={0x14c}
Expand Down
2 changes: 1 addition & 1 deletion unofficial/c100000027.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp)
end
function s.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(e:GetOwnerPlayer(),0,LOCATION_MZONE)>0
end
end
2 changes: 1 addition & 1 deletion unofficial/c100000029.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE)
bc:RegisterEffect(e2)
end
end
end
2 changes: 1 addition & 1 deletion unofficial/c100000030.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
if tg2:GetFirst():IsRelateToEffect(e) then
Duel.Remove(tg2,POS_FACEUP,REASON_EFFECT)
end
end
end
2 changes: 1 addition & 1 deletion unofficial/c100000031.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ end
function s.drop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,id)
Duel.Draw(tp,2,REASON_EFFECT)
end
end
2 changes: 1 addition & 1 deletion unofficial/c100000032.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
if #g>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
end
2 changes: 1 addition & 1 deletion unofficial/c100000034.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(function(e,_,_,r) return (r&REASON_EFFECT)==REASON_EFFECT end)
e1:SetReset(RESET_PHASE|PHASE_END)
Duel.RegisterEffect(e1,tp)
end
end
2 changes: 1 addition & 1 deletion unofficial/c100000035.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function s.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Damage(tp,1000,REASON_EFFECT)
end
end
2 changes: 1 addition & 1 deletion unofficial/c100000036.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ end
function s.damop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Damage(p,d,REASON_EFFECT)
end
end
2 changes: 1 addition & 1 deletion unofficial/c100000037.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ end
function s.damop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Damage(p,d,REASON_EFFECT)
end
end
6 changes: 3 additions & 3 deletions unofficial/c100000038.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ end
function s.ntcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c==nil then return true end
return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),tp,LOCATION_MZONE,0,1,nil)
and (Duel.GetFieldGroupCount(c:GetControler(),LOCATION_HAND,0)==1 and Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),tp,LOCATION_HAND,0,1,nil))
return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),tp,LOCATION_MZONE,0,1,nil)
and (Duel.GetFieldGroupCount(c:GetControler(),LOCATION_HAND,0)==1 and Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),tp,LOCATION_HAND,0,1,nil))
or Duel.GetFieldGroupCount(c:GetControler(),LOCATION_HAND,0)==0
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
Expand All @@ -32,4 +32,4 @@ end
function s.activate(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Draw(p,d,REASON_EFFECT)
end
end
8 changes: 4 additions & 4 deletions unofficial/c100000039.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ function s.initial_effect(c)
end
s.listed_series={0x3013}
function s.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),tp,LOCATION_MZONE,0,1,nil) and rp~=tp
return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),tp,LOCATION_MZONE,0,1,nil) and rp~=tp
end
function s.costfilter1(c)
return c:IsRace(RACE_MACHINE) and c:IsFaceup() and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true)
end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter1,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter1,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,s.costfilter1,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,s.costfilter1,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
Duel.Remove(g,POS_FACEUP,REASON_COST)
end
Expand All @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangePosition(c,POS_FACEDOWN)
Duel.RaiseEvent(c,EVENT_SSET,e,REASON_EFFECT,tp,tp,0)
end
end
end
Loading