Skip to content

Commit d3ef813

Browse files
committed
added Animagica Shooter
1 parent 1e13bb8 commit d3ef813

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

rush/c160020032.lua

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,16 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
3434
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
3535
local g=Duel.SelectMatchingCard(tp,Card.IsCanChangePositionRush,tp,0,LOCATION_MZONE,1,1,nil)
3636
Duel.HintSelection(g)
37-
local g=Duel.GetMatchingGroup(s.desfilter,tp,0,LOCATION_MZONE,nil,e:GetHandler():GetLevel())
38-
if Duel.ChangePosition(g,POS_FACEUP_DEFENSE,POS_FACEDOWN_DEFENSE,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK)>0 and #g>0 and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
39-
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
40-
local sg=g:Select(tp,1,1,nil)
41-
if #sg==0 then return end
42-
sg=sg:AddMaximumCheck()
43-
Duel.HintSelection(sg)
44-
Duel.BreakEffect()
45-
Duel.Destroy(sg,REASON_EFFECT)
37+
if Duel.ChangePosition(g,POS_FACEUP_DEFENSE,POS_FACEDOWN_DEFENSE,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK)>0 then
38+
local g2=Duel.GetMatchingGroup(s.desfilter,tp,0,LOCATION_MZONE,nil,e:GetHandler():GetLevel())
39+
if #g2>0 and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
40+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
41+
local sg=g2:Select(tp,1,1,nil)
42+
if #sg==0 then return end
43+
sg=sg:AddMaximumCheck()
44+
Duel.HintSelection(sg)
45+
Duel.BreakEffect()
46+
Duel.Destroy(sg,REASON_EFFECT)
47+
end
4648
end
4749
end

0 commit comments

Comments
 (0)