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)
end
function c11600375.settg(e,tp,eg,ep,ev,re,r,rp,chk)
local bc=e:GetHandler():GetBattleTarget()
local p=bc:GetOwner()
if chk==0 then return bc and bc:IsControler(1-tp) and Duel.GetLocationCount(p,LOCATION_SZONE)>0 end
if chk==0 then return bc and bc:IsControler(1-tp)
and Duel.GetLocationCount(bc:GetOwner(),LOCATION_SZONE)>0 end
end
function c11600375.setop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetHandler():GetBattleTarget()
......
......@@ -44,7 +44,6 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
--
local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_DEFCHANGE)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e3:SetCode(EVENT_TO_GRAVE)
......@@ -170,17 +169,16 @@ function cm.activate2(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.setfilter(c)
return c:IsFaceup() and (c:IsType(TYPE_MONSTER) and c:IsCanTurnSet())
and (c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable())
function cm.setfilter3(c)
return c:IsFaceup() and c:IsCanTurnSet()
end
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
local g=Duel.GetMatchingGroup(cm.setfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
if chk==0 then return Duel.IsExistingMatchingCard(cm.setfilter3,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
local g=Duel.GetMatchingGroup(cm.setfilter3,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0)
end
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
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local g1=g:SelectSubGroup(tp,cm.check,false,1,2,tp)
......
......@@ -29,7 +29,7 @@ function s.initial_effect(c)
aux.AddCodeList(c,36700304)
--Activate only when you have 40+ "Fire's Dawn" cards
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
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