Commit 4c82d1ce authored by Hello23-Ygopro's avatar Hello23-Ygopro Committed by DailyShana

add hint (#752)

parent a38482b7
...@@ -38,6 +38,7 @@ function c15893860.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,6 +38,7 @@ function c15893860.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local dg=Duel.SelectMatchingCard(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil) local dg=Duel.SelectMatchingCard(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil)
Duel.HintSelection(dg)
Duel.Destroy(dg,REASON_EFFECT) Duel.Destroy(dg,REASON_EFFECT)
end end
end end
...@@ -51,6 +51,7 @@ function c21772453.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,6 +51,7 @@ function c21772453.operation(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(21772453,1)) then if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(21772453,1)) then
Duel.BreakEffect() Duel.BreakEffect()
local sg=g:Select(tp,1,1,nil) local sg=g:Select(tp,1,1,nil)
Duel.HintSelection(sg)
Duel.Destroy(sg,REASON_EFFECT) Duel.Destroy(sg,REASON_EFFECT)
end end
else else
......
...@@ -33,5 +33,6 @@ function c29515122.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -33,5 +33,6 @@ function c29515122.operation(e,tp,eg,ep,ev,re,r,rp)
if ct==0 then return end if ct==0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local dg=Duel.SelectMatchingCard(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,ct,nil) local dg=Duel.SelectMatchingCard(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,ct,nil)
Duel.HintSelection(dg)
Duel.Destroy(dg,REASON_EFFECT) Duel.Destroy(dg,REASON_EFFECT)
end end
...@@ -62,6 +62,7 @@ function c30100551.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,6 +62,7 @@ function c30100551.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local sdg=dg:Select(tp,1,ct,nil) local sdg=dg:Select(tp,1,ct,nil)
Duel.HintSelection(sdg)
Duel.Destroy(sdg,REASON_EFFECT) Duel.Destroy(sdg,REASON_EFFECT)
end end
end end
...@@ -65,6 +65,7 @@ function c65872270.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,6 +65,7 @@ function c65872270.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local rg=g:Select(tp,ct2,ct2,nil) local rg=g:Select(tp,ct2,ct2,nil)
Duel.HintSelection(rg)
Duel.SendtoHand(rg,nil,REASON_EFFECT) Duel.SendtoHand(rg,nil,REASON_EFFECT)
end end
end end
......
...@@ -45,5 +45,6 @@ function c81278754.retop(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,5 +45,6 @@ function c81278754.retop(e,tp,eg,ep,ev,re,r,rp)
if ct==0 then return end if ct==0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToHand,tp,0,LOCATION_MZONE,1,ct,nil) local g=Duel.SelectMatchingCard(tp,Card.IsAbleToHand,tp,0,LOCATION_MZONE,1,ct,nil)
Duel.HintSelection(g)
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
end end
...@@ -27,6 +27,7 @@ function c89086566.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -27,6 +27,7 @@ function c89086566.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local sg=dg:Select(tp,1,dt,nil) local sg=dg:Select(tp,1,dt,nil)
Duel.HintSelection(sg)
Duel.Destroy(sg,REASON_EFFECT) Duel.Destroy(sg,REASON_EFFECT)
end end
end end
...@@ -47,6 +47,7 @@ function c92693205.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,6 +47,7 @@ function c92693205.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp,aux.TRUE,tp,LOCATION_MZONE,LOCATION_MZONE,1,ct,nil) local g=Duel.SelectMatchingCard(tp,aux.TRUE,tp,LOCATION_MZONE,LOCATION_MZONE,1,ct,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.HintSelection(g)
Duel.Destroy(g,REASON_EFFECT) Duel.Destroy(g,REASON_EFFECT)
end end
end end
...@@ -36,5 +36,6 @@ function c92918648.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,5 +36,6 @@ function c92918648.operation(e,tp,eg,ep,ev,re,r,rp)
if ct==0 then return end if ct==0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp,c92918648.filter,tp,0,LOCATION_ONFIELD,1,ct,nil) local g=Duel.SelectMatchingCard(tp,c92918648.filter,tp,0,LOCATION_ONFIELD,1,ct,nil)
Duel.HintSelection(g)
Duel.Destroy(g,REASON_EFFECT) Duel.Destroy(g,REASON_EFFECT)
end end
...@@ -48,6 +48,7 @@ function c94388754.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,6 +48,7 @@ function c94388754.operation(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(94388754,1)) then if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(94388754,1)) then
Duel.BreakEffect() Duel.BreakEffect()
local sg=g:Select(tp,1,1,nil) local sg=g:Select(tp,1,1,nil)
Duel.HintSelection(sg)
Duel.Destroy(sg,REASON_EFFECT) Duel.Destroy(sg,REASON_EFFECT)
end end
else else
......
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