Commit 986c0348 authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent 894bd0d9
...@@ -43,36 +43,28 @@ end ...@@ -43,36 +43,28 @@ end
function cm.bacon(e,tp,eg,ep,ev,re,r,rp) function cm.bacon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2 return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2
end end
function cm.bafilter(c,tp) function cm.bafilter(c)
return c:IsAttackable() and c:IsAttack(1550) and c:IsDefense(1050) and c:IsFaceup() return c:IsAttackable() and c:IsAttack(1550) and c:IsDefense(1050) and c:IsFaceup()
and Duel.IsExistingTarget(cm.bbfilter,tp,0,LOCATION_MZONE,1,c,c)
end end
function cm.bbfilter(c,tc) function cm.bbfilter(c)
return c:IsCanBeBattleTarget(tc) and c:IsFaceup() return c:IsFaceup()
end end
function cm.batg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.batg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
if chk==0 then return Duel.IsExistingTarget(cm.bafilter,tp,LOCATION_MZONE,0,1,e:GetHandler()) end if chk==0 then return Duel.IsExistingTarget(cm.bafilter,tp,LOCATION_MZONE,0,1,nil)
and Duel.IsExistingTarget(cm.bbfilter,tp,0,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SELF) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SELF)
local g1=Duel.SelectTarget(tp,cm.bafilter,tp,LOCATION_MZONE,0,1,1,e:GetHandler(),tp) local g1=Duel.SelectTarget(tp,cm.bafilter,tp,LOCATION_MZONE,0,1,1,nil)
local ac=g1:GetFirst()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPPO) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPPO)
local g2=Duel.SelectTarget(tp,cm.bbfilter,tp,0,LOCATION_MZONE,1,1,ac,ac) local g2=Duel.SelectTarget(tp,cm.bbfilter,tp,0,LOCATION_MZONE,1,1,nil)
e:SetLabelObject(ac)
end
function cm.cf(c,e)
return not c:IsRelateToEffect(e)
end end
function cm.baop(e,tp,eg,ep,ev,re,r,rp) function cm.baop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
if #g>1 and not g:IsExists(cm.cf,1,nil,e) then local tg=g:Filter(Card.IsRelateToEffect,nil,e)
local tc=g:GetFirst() if tg:GetCount()~=2 then return end
local sc=g:GetNext() local ac=tg:Filter(Card.IsControler,nil,tp):GetFirst()
local ac=e:GetLabelObject() local at=tg:Filter(Card.IsControler,nil,1-tp):GetFirst()
if tc==ac then tc=sc end Duel.CalculateDamage(ac,at)
if ac:IsAttackable() then Duel.CalculateDamage(ac,tc) end
end
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
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