Commit f5009fe4 authored by GuGu's avatar GuGu

Update c78901001.lua 单卡空发

parent 99f0761a
Pipeline #26239 passed with stage
in 8 seconds
......@@ -29,7 +29,7 @@ function c78901001.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand() and c78901001.IsJuXing(c)
end
function c78901001.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_HAND,0,1,nil) and (Duel.IsExistingMatchingCard(c78901001.filter,tp,LOCATION_DECK,0,1,nil) or Duel.IsPlayerCanDraw(tp,1)) end
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_HAND,0,1,e:GetHandler()) and (Duel.IsExistingMatchingCard(c78901001.filter,tp,LOCATION_DECK,0,1,nil) or Duel.IsPlayerCanDraw(tp,1)) end
e:SetLabel(0)
local ct1=Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,0)
local ct2=Duel.GetFieldGroupCount(tp,0,LOCATION_ONFIELD)
......@@ -51,7 +51,7 @@ function c78901001.activate(e,tp,eg,ep,ev,re,r,rp)
else
a=0
end
local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,LOCATION_HAND,0,nil)
local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,LOCATION_HAND,0,e:GetHandler())
if g:GetCount()<1 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local tc=g:Select(tp,1,1,nil):GetFirst()
......
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