Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix

  • Loading branch information...
commit 34fd244d33a3141d71ce6c51f5328d198298f560 1 parent f554254
@Fluorohydride authored
Showing with 6 additions and 3 deletions.
  1. +1 −1  script/c14613029.lua
  2. +5 −2 script/c38049541.lua
View
2  script/c14613029.lua
@@ -19,7 +19,7 @@ function c14613029.condition(e,tp,eg,ep,ev,re,r,rp)
end
function c14613029.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and chkc:IsDestructable() end
- if chk==0 then return Duel.IsExistingTarget(Card.IsDestructable,tp,0,LOCATION_ONFIELD,1,nil) end
+ if chk==0 then return Duel.IsExistingTarget(Card.IsDestructable,tp,0,LOCATION_ONFIELD,2,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPPO)
local g=Duel.SelectTarget(tp,Card.IsDestructable,tp,0,LOCATION_ONFIELD,2,2,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
View
7 script/c38049541.lua
@@ -16,13 +16,16 @@ function c38049541.coscost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end
Duel.SendtoGrave(e:GetHandler(),REASON_COST)
end
+function c38049541.filter(c)
+ return c:IsFaceup() and c:IsSetCard(0x2)
+end
function c38049541.costg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and chkc:IsFaceup() end
- if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,0,1,nil) end
+ if chk==0 then return Duel.IsExistingTarget(c38049541.filter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,0)
local att=Duel.AnnounceAttribute(tp,1,0x7f)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
- Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,0,1,1,nil)
+ Duel.SelectTarget(tp,c38049541.filter,tp,LOCATION_MZONE,0,1,1,nil)
e:SetLabel(att)
end
function c38049541.cosop(e,tp,eg,ep,ev,re,r,rp)
Please sign in to comment.
Something went wrong with that request. Please try again.