Commit 8ba3ea0a authored by Satty's avatar Satty

fix

parent e694978f
Pipeline #36087 passed with stages
in 38 minutes and 7 seconds
...@@ -82,8 +82,8 @@ function c11600375.fuslimit(e,c,sumtype) ...@@ -82,8 +82,8 @@ function c11600375.fuslimit(e,c,sumtype)
end end
function c11600375.settg(e,tp,eg,ep,ev,re,r,rp,chk) function c11600375.settg(e,tp,eg,ep,ev,re,r,rp,chk)
local bc=e:GetHandler():GetBattleTarget() local bc=e:GetHandler():GetBattleTarget()
local p=bc:GetOwner() if chk==0 then return bc and bc:IsControler(1-tp)
if chk==0 then return bc and bc:IsControler(1-tp) and Duel.GetLocationCount(p,LOCATION_SZONE)>0 end and Duel.GetLocationCount(bc:GetOwner(),LOCATION_SZONE)>0 end
end end
function c11600375.setop(e,tp,eg,ep,ev,re,r,rp) function c11600375.setop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetHandler():GetBattleTarget() local tc=e:GetHandler():GetBattleTarget()
......
...@@ -44,7 +44,6 @@ function cm.initial_effect(c) ...@@ -44,7 +44,6 @@ function cm.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
-- --
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_DEFCHANGE)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP) e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e3:SetCode(EVENT_TO_GRAVE) e3:SetCode(EVENT_TO_GRAVE)
...@@ -170,17 +169,16 @@ function cm.activate2(e,tp,eg,ep,ev,re,r,rp) ...@@ -170,17 +169,16 @@ function cm.activate2(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.setfilter(c) function cm.setfilter3(c)
return c:IsFaceup() and (c:IsType(TYPE_MONSTER) and c:IsCanTurnSet()) return c:IsFaceup() and c:IsCanTurnSet()
and (c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable())
end end
function cm.atktg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.setfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.setfilter3,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
local g=Duel.GetMatchingGroup(cm.setfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) local g=Duel.GetMatchingGroup(cm.setfilter3,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0)
end end
function cm.atkop(e,tp,eg,ep,ev,re,r,rp) function cm.atkop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(cm.setfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) local g=Duel.GetMatchingGroup(cm.setfilter3,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
if g:GetCount()==0 then return end if g:GetCount()==0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local g1=g:SelectSubGroup(tp,cm.check,false,1,2,tp) local g1=g:SelectSubGroup(tp,cm.check,false,1,2,tp)
......
...@@ -29,7 +29,7 @@ function s.initial_effect(c) ...@@ -29,7 +29,7 @@ function s.initial_effect(c)
aux.AddCodeList(c,36700304) aux.AddCodeList(c,36700304)
--Activate only when you have 40+ "Fire's Dawn" cards --Activate only when you have 40+ "Fire's Dawn" cards
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_CANNOT_INACTIVATE+EFFECT_FLAG_CANNOT_DISABLE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_CANNOT_INACTIVATE+EFFECT_FLAG_CANNOT_DISABLE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment