Skip to content

Commit a3df0ee

Browse files
committed
Other updates to scripts with wrong setcode constants
1 parent 2ab8e60 commit a3df0ee

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

official/c85541675.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ s.counter_place_list={0x12}
3333
function s.cfilter(c)
3434
local np=c:GetPosition()
3535
local pp=c:GetPreviousPosition()
36-
return c:IsSetCard(SET_KARAKURI) and ((pp==POS_FACEUP_ATTACK and np==POS_FACEUP_DEFENSE) or (pp==POS_FACEUP_DEFENSE and np==POS_FACEUP_ATTACK) or (pp==SET_HERO and np==POS_FACEUP_ATTACK))
36+
return c:IsSetCard(SET_KARAKURI) and ((pp==POS_FACEUP_ATTACK and np==POS_FACEUP_DEFENSE) or (pp==POS_FACEUP_DEFENSE and np==POS_FACEUP_ATTACK) or (pp==POS_FACEDOWN_DEFENSE and np==POS_FACEUP_ATTACK))
3737
end
3838
function s.accon(e,tp,eg,ep,ev,re,r,rp)
3939
return eg:IsExists(s.cfilter,1,nil)
@@ -58,4 +58,4 @@ end
5858
function s.drop(e,tp,eg,ep,ev,re,r,rp)
5959
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
6060
Duel.Draw(p,d,REASON_EFFECT)
61-
end
61+
end

unofficial/c100000025.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
local s,id=GetID()
44
function s.initial_effect(c)
55
--activate
6-
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})
6+
local e1=Fusion.CreateSummonEff({handler=c,fusfilter=aux.FilterBoolFunction(Card.IsSetCard,SET_FOSSIL),matfilter=aux.FALSE,extrafil=s.fextra,value=0x20,extraop=Fusion.BanishMaterial,extratg=s.extratg})
77
c:RegisterEffect(e1)
88
end
99
s.listed_series={0x14c}
@@ -18,4 +18,4 @@ end
1818
function s.extratg(e,tp,eg,ep,ev,re,r,rp,chk)
1919
if chk==0 then return true end
2020
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,PLAYER_ALL,LOCATION_GRAVE)
21-
end
21+
end

unofficial/c511001101.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function s.crystalop(e,tp,eg,ep,ev,re,r,rp,chk)
6767
Duel.RaiseEvent(c,47408488,e,0,tp,0,0)
6868
end
6969
function s.placetg(e,tp,eg,ep,ev,re,r,rp,chk)
70-
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,SET_BLACKWING,0,1,nil,SET_CRYSTAL_BEAST)
70+
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_DECK|LOCATION_HAND|LOCATION_GRAVE|LOCATION_REMOVED,0,1,nil,SET_CRYSTAL_BEAST)
7171
and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 end
7272
end
7373
function s.placeop(e,tp,eg,ep,ev,re,r,rp,chk)
@@ -86,4 +86,4 @@ function s.placeop(e,tp,eg,ep,ev,re,r,rp,chk)
8686
tc:RegisterEffect(e1)
8787
Duel.RaiseEvent(tc,47408488,e,0,tp,0,0)
8888
end
89-
end
89+
end

0 commit comments

Comments
 (0)