Commit 6d5af165 authored by salix5's avatar salix5

Merge pull request #150 from Tianchenglipu/patch-2

Update c16229315.lua
parents 81085d7d 09211934
...@@ -16,12 +16,12 @@ function c16229315.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -16,12 +16,12 @@ function c16229315.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.PayLPCost(tp,3000) Duel.PayLPCost(tp,3000)
end end
function c16229315.target(e,tp,eg,ep,ev,re,r,rp,chk) function c16229315.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_EXTRA,0)~=0 end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGrave,tp,LOCATION_EXTRA,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_EXTRA)
end end
function c16229315.operation(e,tp,eg,ep,ev,re,r,rp) function c16229315.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,nil,tp,LOCATION_EXTRA,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,Card.IsAbleToGrave,tp,LOCATION_EXTRA,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoGrave(g,REASON_EFFECT) Duel.SendtoGrave(g,REASON_EFFECT)
end 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