Commit c8d01cbd authored by Tachibana's avatar Tachibana

nmbd

parent 5f495e2c
...@@ -90,8 +90,8 @@ end ...@@ -90,8 +90,8 @@ end
function c21520237.igfilter(c) function c21520237.igfilter(c)
return c:IsAbleToHand() and c:IsType(TYPE_TRAP) return c:IsAbleToHand() and c:IsType(TYPE_TRAP)
end end
function c21520237.igfilter2(fc) function c21520237.effectfilter(c)
return fc:IsCode(21520133) and fc:IsFaceup() return c:IsCode(21520133) and c:IsFaceup() and not c:IsStatus(STATUS_BATTLE_DESTROYED)
end end
function c21520237.igtg(e,tp,eg,ep,ev,re,r,rp,chk) function c21520237.igtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>0 end if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>0 end
...@@ -121,9 +121,9 @@ function c21520237.igop(e,tp,eg,ep,ev,re,r,rp) ...@@ -121,9 +121,9 @@ function c21520237.igop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(c,REASON_EFFECT) Duel.Destroy(c,REASON_EFFECT)
end end
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
if not Duel.IsExistingMatchingCard(c21520237.igfilter2,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) then end
Duel.BreakEffect() if not Duel.IsExistingMatchingCard(c21520237.effectfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) then
Duel.Damage(tp,1500,REASON_RULE) Duel.BreakEffect()
end Duel.Damage(tp,1500,REASON_RULE)
end end
end end
...@@ -90,8 +90,8 @@ end ...@@ -90,8 +90,8 @@ end
function c21520238.igfilter(c) function c21520238.igfilter(c)
return c:IsAbleToHand() and c:IsType(TYPE_SPELL) return c:IsAbleToHand() and c:IsType(TYPE_SPELL)
end end
function c21520238.igfilter2(fc) function c21520238.effectfilter(c)
return fc:IsCode(21520133) and fc:IsFaceup() return c:IsCode(21520133) and c:IsFaceup() and not c:IsStatus(STATUS_BATTLE_DESTROYED)
end end
function c21520238.igtg(e,tp,eg,ep,ev,re,r,rp,chk) function c21520238.igtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>0 end if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>0 end
...@@ -121,9 +121,9 @@ function c21520238.igop(e,tp,eg,ep,ev,re,r,rp) ...@@ -121,9 +121,9 @@ function c21520238.igop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(c,REASON_EFFECT) Duel.Destroy(c,REASON_EFFECT)
end end
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
if not Duel.IsExistingMatchingCard(c21520238.igfilter2,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) then end
Duel.BreakEffect() if not Duel.IsExistingMatchingCard(c21520238.effectfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) then
Duel.Damage(tp,2000,REASON_RULE) Duel.BreakEffect()
end Duel.Damage(tp,2000,REASON_RULE)
end end
end end
...@@ -42,9 +42,6 @@ function cm.ssop(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,9 +42,6 @@ function cm.ssop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP)
end end
end end
function cm.rfcon(e)
return Duel.GetAttacker()==e:GetHandler() or Duel.GetAttackTarget()==e:GetHandler()
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
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
......
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