Skip to content

Commit ab60ebf

Browse files
authored
"Enneacraft" fix
1 parent d0cee22 commit ab60ebf

8 files changed

Lines changed: 8 additions & 8 deletions

File tree

pre-release/c100446016.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function s.initial_effect(c)
4242
e4:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
4343
e4:SetCode(EVENT_CHAINING)
4444
e4:SetRange(LOCATION_MZONE)
45-
e4:SetCondition(function(e,tp,eg,ep,ev,re) return ep==1-tp and re:IsMonsterEffect() and Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)&LOCATION_HAND>0 end)
45+
e4:SetCondition(function(e,tp,eg,ep,ev,re) return e:GetHandler():IsFacedown() and ep==1-tp and re:IsMonsterEffect() and Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)&LOCATION_HAND>0 end)
4646
e4:SetCost(Cost.SelfChangePosition(POS_FACEUP_DEFENSE))
4747
e4:SetTarget(s.thtg)
4848
e4:SetOperation(s.thop)

pre-release/c100446017.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
126126
end
127127
end
128128
function s.thcon(e,tp,eg,ep,ev,re,r,rp)
129-
if ep==tp then return false end
129+
if ep==tp or e:GetHandler():IsFaceup() then return false end
130130
if re:IsHasCategory(CATEGORY_SEARCH) or re:IsHasCategory(CATEGORY_DRAW) then return true end
131131
local ex1,g1,gc1,dp1,loc1=Duel.GetOperationInfo(ev,CATEGORY_TOHAND)
132132
local ex2,g2,gc2,dp2,loc2=Duel.GetPossibleOperationInfo(ev,CATEGORY_TOHAND)

pre-release/c100446018.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function s.initial_effect(c)
4242
e4:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
4343
e4:SetCode(EVENT_CHAINING)
4444
e4:SetRange(LOCATION_MZONE)
45-
e4:SetCondition(function(e,tp,eg,ep,ev,re) return ep==1-tp and re:IsHasCategory(CATEGORY_SPECIAL_SUMMON) end)
45+
e4:SetCondition(function(e,tp,eg,ep,ev,re) return e:GetHandler():IsFacedown() and ep==1-tp and re:IsHasCategory(CATEGORY_SPECIAL_SUMMON) end)
4646
e4:SetCost(Cost.SelfChangePosition(POS_FACEUP_DEFENSE))
4747
e4:SetTarget(s.thtg)
4848
e4:SetOperation(s.thop)

pre-release/c100446019.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function s.initial_effect(c)
4242
e4:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
4343
e4:SetCode(EVENT_CHAINING)
4444
e4:SetRange(LOCATION_MZONE)
45-
e4:SetCondition(function(e,tp,eg,ep,ev,re) return ep==1-tp and Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)&(LOCATION_GRAVE|LOCATION_REMOVED)>0 end)
45+
e4:SetCondition(function(e,tp,eg,ep,ev,re) return e:GetHandler():IsFacedown() and ep==1-tp and Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)&(LOCATION_GRAVE|LOCATION_REMOVED)>0 end)
4646
e4:SetCost(Cost.SelfChangePosition(POS_FACEUP_DEFENSE))
4747
e4:SetTarget(s.thtg)
4848
e4:SetOperation(s.thop)

pre-release/c100446020.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
141141
end
142142
function s.rthcon(e,tp,eg,ep,ev,re,r,rp)
143143
local ch=Duel.GetCurrentChain()-1
144-
return ch>0 and ep==1-tp and Duel.GetChainInfo(ch,CHAININFO_TRIGGERING_CONTROLER)==tp
144+
return e:GetHandler():IsFacedown() and ch>0 and ep==1-tp and Duel.GetChainInfo(ch,CHAININFO_TRIGGERING_CONTROLER)==tp
145145
end
146146
function s.rthtg(e,tp,eg,ep,ev,re,r,rp,chk)
147147
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end

pre-release/c100446021.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function s.disconfilter(c,tp)
137137
return c:IsOnField() and c:IsControler(tp)
138138
end
139139
function s.discon(e,tp,eg,ep,ev,re,r,rp)
140-
if not (rp==1-tp and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) and Duel.IsChainDisablable(ev)) then return false end
140+
if not (rp==1-tp and e:GetHandler():IsFacedown() and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) and Duel.IsChainDisablable(ev)) then return false end
141141
local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
142142
return tg and tg:IsExists(s.disconfilter,1,nil,tp)
143143
end

pre-release/c100446022.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
127127
end
128128
end
129129
function s.negcon(e,tp,eg,ep,ev,re,r,rp)
130-
return Duel.IsTurnPlayer(tp) and rp==1-tp and Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)&LOCATION_ONFIELD>0 and Duel.IsChainNegatable(ev)
130+
return Duel.IsTurnPlayer(tp) and e:GetHandler():IsFacedown() and rp==1-tp and Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)&LOCATION_ONFIELD>0 and Duel.IsChainNegatable(ev)
131131
end
132132
function s.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
133133
if chk==0 then return true end

pre-release/c100446023.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
130130
end
131131
end
132132
function s.indescon(e,tp,eg,ep,ev,re,r,rp)
133-
if rp==tp or Duel.HasFlagEffect(tp,id) then return false end
133+
if rp==tp or Duel.HasFlagEffect(tp,id) or e:GetHandler():IsFaceup() then return false end
134134
if re:IsHasCategory(CATEGORY_NEGATE) and Duel.GetChainInfo(ev-1,CHAININFO_TRIGGERING_EFFECT):IsHasType(EFFECT_TYPE_ACTIVATE) then return false end
135135
local ex,tg,tc=Duel.GetOperationInfo(ev,CATEGORY_DESTROY)
136136
return ex and tg~=nil and tg:FilterCount(Card.IsOnField,nil)>0

0 commit comments

Comments
 (0)