Commit 12fc2152 authored by Huangnan's avatar Huangnan

byd

parent ac5510e0
Pipeline #30149 passed with stages
in 29 minutes and 47 seconds
......@@ -53,7 +53,7 @@ function c16364041.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(g,REASON_COST)
end
function c16364041.spfilter(c,e,tp)
return not c:IsCode(16364041) and c:IsSetCard(0xdc3) and (c:IsLevelBelow(7) or c:IsRankAbove(7))
return not c:IsCode(16364041) and c:IsSetCard(0xdc3) and (c:IsLevelBelow(7) or c:IsRankBelow(7))
and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end
function c16364041.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
......@@ -182,9 +182,11 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
end
--immune
function cm.efilter(e,te)
if not te:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return true end
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
return not g or not g:IsContains(e:GetHandler())
local c=e:GetHandler()
local ec=te:GetHandler()
if te:GetHandlerPlayer()==e:GetHandlerPlayer() or ec:IsHasCardTarget(c) or (te:IsHasType(EFFECT_TYPE_ACTIONS) and te:IsHasProperty(EFFECT_FLAG_CARD_TARGET) and c:IsRelateToEffect(te)) then return false
end
return true
end
--to hand
function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -133,7 +133,7 @@ function cm.pmfilter(c)
end
function cm.atcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsSummonType(SUMMON_TYPE_SYNCHRO) and c:GetMaterial():IsExists(cm.pmfilter,1,nil)
return c:IsSummonType(SUMMON_TYPE_SYNCHRO) and c:GetMaterial():IsExists(cm.pmfilter,1,nil) and e:GetHandler():GetBattleTarget()~=nil
end
--special summon or self
function cm.tdfilter(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