Skip to content
This repository
Browse code

fix

  • Loading branch information...
commit 34fd244d33a3141d71ce6c51f5328d198298f560 1 parent f554254
Fluorohydride authored

Showing 2 changed files with 6 additions and 3 deletions. Show diff stats Hide diff stats

  1. +1 1  script/c14613029.lua
  2. +5 2 script/c38049541.lua
2  script/c14613029.lua
@@ -19,7 +19,7 @@ function c14613029.condition(e,tp,eg,ep,ev,re,r,rp)
19 19 end
20 20 function c14613029.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
21 21 if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and chkc:IsDestructable() end
22   - if chk==0 then return Duel.IsExistingTarget(Card.IsDestructable,tp,0,LOCATION_ONFIELD,1,nil) end
  22 + if chk==0 then return Duel.IsExistingTarget(Card.IsDestructable,tp,0,LOCATION_ONFIELD,2,nil) end
23 23 Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPPO)
24 24 local g=Duel.SelectTarget(tp,Card.IsDestructable,tp,0,LOCATION_ONFIELD,2,2,nil)
25 25 Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
7 script/c38049541.lua
@@ -16,13 +16,16 @@ function c38049541.coscost(e,tp,eg,ep,ev,re,r,rp,chk)
16 16 if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end
17 17 Duel.SendtoGrave(e:GetHandler(),REASON_COST)
18 18 end
  19 +function c38049541.filter(c)
  20 + return c:IsFaceup() and c:IsSetCard(0x2)
  21 +end
19 22 function c38049541.costg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
20 23 if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and chkc:IsFaceup() end
21   - if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,0,1,nil) end
  24 + if chk==0 then return Duel.IsExistingTarget(c38049541.filter,tp,LOCATION_MZONE,0,1,nil) end
22 25 Duel.Hint(HINT_SELECTMSG,tp,0)
23 26 local att=Duel.AnnounceAttribute(tp,1,0x7f)
24 27 Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
25   - Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,0,1,1,nil)
  28 + Duel.SelectTarget(tp,c38049541.filter,tp,LOCATION_MZONE,0,1,1,nil)
26 29 e:SetLabel(att)
27 30 end
28 31 function c38049541.cosop(e,tp,eg,ep,ev,re,r,rp)

0 comments on commit 34fd244

Please sign in to comment.
Something went wrong with that request. Please try again.