Commit 54fe0889 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c60010032.lua

parent 175160a7
Pipeline #31187 failed with stages
in 18 minutes and 13 seconds
......@@ -94,14 +94,15 @@ function cm.spfil(c,raceo,attro,races,attrs,e,tp)
return not c:IsRace(raceo) and not c:IsAttribute(attro) and not c:IsRace(races) and not c:IsAttribute(attrs) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and aux.IsCodeListed(c,60010029)
end
function cm.repfilter(c,tp,races,attrs)
return c:IsControler(tp) and c:IsOnField() and not c:IsAttribute(races) and not c:IsRace(attrs)
return c:IsControler(tp) and c:IsOnField()
and ((not c:IsAttribute(races) and not c:IsRace(attrs) and c:IsType(TYPE_MONSTER)) or c:IsFacedown())
and c:IsReason(REASON_BATTLE+REASON_EFFECT) and not c:IsReason(REASON_REPLACE)
end
function cm.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local races=e:GetHandler():GetRace()
local attrs=e:GetHandler():GetAttribute()
if chk==0 then return eg:IsExists(cm.repfilter,1,nil,tp,races,attrs) end
if chk==0 then return eg:IsExists(cm.repfilter,1,c,tp,races,attrs) end
return Duel.SelectEffectYesNo(tp,c,96)
end
function cm.desrepval(e,c)
......
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