Commit cfef0aad authored by songtongtong's avatar songtongtong

fixed

parent bb9b7776
Pipeline #23784 passed with stages
in 25 minutes and 53 seconds
......@@ -83,7 +83,6 @@ function cm.activate(e,tp)
Duel.SendtoHand(tg,tp,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tg)
end
end
end
function cm.check(c)
return c:IsFaceup() and aux.IsCodeListed(c,m-1)
......
......@@ -11,7 +11,7 @@ function s.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function s.op(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and not tc:IsImmuneToEffect(e) and tc:IsCanTurnSet()
if tc:IsRelateToEffect(e) and not tc:IsImmuneToEffect(e)
and Duel.MoveToField(tc,tp,tc:GetOwner(),LOCATION_SZONE,POS_FACEDOWN,true) then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetCode(EFFECT_CHANGE_TYPE)
......
......@@ -94,7 +94,7 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsType(TYPE_SPELL) or tc:IsType(TYPE_TRAP) then
Duel.SendtoGrave(tc,REASON_EFFECT)
elseif tc:IsType(TYPE_MONSTER) then
if Duel.MoveToField(tc,tp,tc:GetOwner(),LOCATION_SZONE,POS_FACEDOWN,true) then
if not tc:IsImmuneToEffect(e) and Duel.MoveToField(tc,tp,tc:GetOwner(),LOCATION_SZONE,POS_FACEDOWN,true) then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetCode(EFFECT_CHANGE_TYPE)
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -124,7 +124,7 @@ function s.atcon(e,tp,eg,ep,ev,re,r,rp)
return aux.bdocon(e,tp,eg,ep,ev,re,r,rp) and e:GetHandler():IsChainAttackable()
end
function s.atop(e,tp,eg,ep,ev,re,r,rp)
Duel.ChainAttack(e:GetHandler())
Duel.ChainAttack()
end
function s.initial_effect(c)
c:EnableReviveLimit()
......@@ -133,5 +133,5 @@ function s.initial_effect(c)
s.tograve(c)
end
function s.fmatfilter(c)
return c:IsRace(RACE_FIEND) and c:IsType(TYPE_MONSTER)
return c:IsRace(RACE_FIEND) and c:IsFusionType(TYPE_MONSTER)
end
\ No newline at end of file
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