Skip to content

Commit a208ff1

Browse files
authored
update unofficial scripts (#1179)
1 parent eb8480b commit a208ff1

File tree

5,018 files changed

+7464
-7510
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,018 files changed

+7464
-7510
lines changed

goat/c504700084.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function s.initial_effect(c)
77
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
88
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
99
e1:SetCode(EVENT_TO_GRAVE)
10-
e1:SetCost(aux.bfgcost)
10+
e1:SetCost(Cost.SelfBanish)
1111
e1:SetTarget(s.target)
1212
e1:SetOperation(s.operation)
1313
c:RegisterEffect(e1)

unofficial/c100000000.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ end
5050
function s.spcon(e,c)
5151
if c==nil then return true end
5252
local tp=e:GetHandlerPlayer()
53-
local rg1=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil,ATTRIBUTE_LIGHT,RACE_WARRIOR)
54-
local rg2=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil,ATTRIBUTE_DARK,RACE_FIEND)
53+
local rg1=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil,ATTRIBUTE_LIGHT,RACE_WARRIOR)
54+
local rg2=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil,ATTRIBUTE_DARK,RACE_FIEND)
5555
local rg=rg1:Clone()
5656
rg:Merge(rg2)
5757
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
@@ -60,7 +60,7 @@ end
6060
function s.sptg(e,tp,eg,ep,ev,re,r,rp,c)
6161
local c=e:GetHandler()
6262
local g=nil
63-
local rg=Duel.GetMatchingGroup(s.spfilter1,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil,ATTRIBUTE_LIGHT+ATTRIBUTE_DARK,RACE_WARRIOR+RACE_FIEND)
63+
local rg=Duel.GetMatchingGroup(s.spfilter1,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil,ATTRIBUTE_LIGHT+ATTRIBUTE_DARK,RACE_WARRIOR+RACE_FIEND)
6464
local g=aux.SelectUnselectGroup(rg,e,tp,2,2,s.rescon,1,tp,HINTMSG_REMOVE,nil,nil,true)
6565
if #g>0 then
6666
g:KeepAlive()
@@ -81,12 +81,12 @@ function s.sgcost(e,tp,eg,ep,ev,re,r,rp,chk)
8181
end
8282
function s.sgtg(e,tp,eg,ep,ev,re,r,rp,chk)
8383
if chk==0 then return true end
84-
local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_HAND+LOCATION_ONFIELD+LOCATION_GRAVE,e:GetHandler())
84+
local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_HAND|LOCATION_ONFIELD|LOCATION_GRAVE,e:GetHandler())
8585
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,#g,0,0)
8686
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,0,0,1-tp,#g*500)
8787
end
8888
function s.sgop(e,tp,eg,ep,ev,re,r,rp)
89-
local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_HAND+LOCATION_ONFIELD+LOCATION_GRAVE,e:GetHandler())
89+
local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_HAND|LOCATION_ONFIELD|LOCATION_GRAVE,e:GetHandler())
9090
Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
9191
local og=Duel.GetOperatedGroup()
9292
local ct=og:FilterCount(Card.IsLocation,nil,LOCATION_REMOVED)

unofficial/c100000002.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp)
9090
Duel.Damage(p,d,REASON_EFFECT)
9191
end
9292
function s.tdcon(e,tp,eg,ep,ev,re,r,rp)
93-
return Duel.GetTurnPlayer()==tp
93+
return Duel.IsTurnPlayer(tp)
9494
end
9595
function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
9696
if chk==0 then return true end

unofficial/c100000003.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function s.lpop(e,tp,eg,ep,ev,re,r,rp)
8282
Duel.Damage(1-tp,dam,REASON_EFFECT)
8383
end
8484
function s.tdcon(e,tp,eg,ep,ev,re,r,rp)
85-
return Duel.GetTurnPlayer()==tp
85+
return Duel.IsTurnPlayer(tp)
8686
end
8787
function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
8888
if chk==0 then return true end

unofficial/c100000004.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp)
8282
Duel.Damage(p,bc:GetAttack(),REASON_EFFECT)
8383
end
8484
function s.tdcon(e,tp,eg,ep,ev,re,r,rp)
85-
return Duel.GetTurnPlayer()==tp
85+
return Duel.IsTurnPlayer(tp)
8686
end
8787
function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
8888
if chk==0 then return true end

unofficial/c100000005.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp)
8484
end
8585
end
8686
function s.tdcon(e,tp,eg,ep,ev,re,r,rp)
87-
return Duel.GetTurnPlayer()==tp
87+
return Duel.IsTurnPlayer(tp)
8888
end
8989
function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
9090
if chk==0 then return true end

unofficial/c100000006.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp)
8585
end
8686
end
8787
function s.tdcon(e,tp,eg,ep,ev,re,r,rp)
88-
return Duel.GetTurnPlayer()==tp
88+
return Duel.IsTurnPlayer(tp)
8989
end
9090
function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
9191
if chk==0 then return true end

unofficial/c100000007.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp)
8282
Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)
8383
end
8484
function s.tdcon(e,tp,eg,ep,ev,re,r,rp)
85-
return Duel.GetTurnPlayer()==tp
85+
return Duel.IsTurnPlayer(tp)
8686
end
8787
function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
8888
if chk==0 then return true end

unofficial/c100000008.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function s.lpop(e,tp,eg,ep,ev,re,r,rp)
7878
Duel.SetLP(p,Duel.GetLP(p)/2)
7979
end
8080
function s.tdcon(e,tp,eg,ep,ev,re,r,rp)
81-
return Duel.GetTurnPlayer()==tp
81+
return Duel.IsTurnPlayer(tp)
8282
end
8383
function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
8484
if chk==0 then return true end

unofficial/c100000009.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp)
102102
Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)
103103
end
104104
function s.tdcon(e,tp,eg,ep,ev,re,r,rp)
105-
return Duel.GetTurnPlayer()==tp
105+
return Duel.IsTurnPlayer(tp)
106106
end
107107
function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
108108
if chk==0 then return true end

0 commit comments

Comments
 (0)