Commit d5a20834 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c60152906.lua

parent 10c30533
...@@ -102,14 +102,11 @@ function c60152906.e1op(e,tp,eg,ep,ev,re,r,rp) ...@@ -102,14 +102,11 @@ function c60152906.e1op(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c60152906.e2tg(e,tp,eg,ep,ev,re,r,rp,chk) function c60152906.e2tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGrave,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.SetTargetPlayer(tp) Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1000) Duel.SetTargetParam(1000)
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,1000) Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,1000)
end end
function c60152906.e2opfilter(c)
return c
end
function c60152906.e2op(e,tp,eg,ep,ev,re,r,rp) function c60152906.e2op(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Recover(p,d,REASON_EFFECT) Duel.Recover(p,d,REASON_EFFECT)
...@@ -122,7 +119,7 @@ function c60152906.e2op(e,tp,eg,ep,ev,re,r,rp) ...@@ -122,7 +119,7 @@ function c60152906.e2op(e,tp,eg,ep,ev,re,r,rp)
local d2=math.floor(s/1000) local d2=math.floor(s/1000)
if d2>=1 then if d2>=1 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c60152906.e2opfilter,tp,0,LOCATION_ONFIELD,1,d2,nil) local g=Duel.SelectMatchingCard(tp,Card.IsAbleToGrave,tp,0,LOCATION_ONFIELD,1,d2,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.HintSelection(g) Duel.HintSelection(g)
Duel.SendtoGrave(g,REASON_EFFECT) Duel.SendtoGrave(g,REASON_EFFECT)
......
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