Skip to content

Commit 7f568ef

Browse files
authored
Update "Xyz Shift (anime)"
- Should Tribute the first monster, not send it to the GY - Monster should be destroyed during the End Phase
1 parent 0520353 commit 7f568ef

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

unofficial/c511024006.lua

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
--エクシーズ・シフト (Anime)
22
--Xyz Shift (Anime)
3-
--Scripter by IanxWaifu
4-
--fixed by MLD
3+
--Scripted by IanxWaifu
54
local s,id=GetID()
65
function s.initial_effect(c)
76
--Activate
@@ -19,7 +18,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
1918
if chk==0 then return true end
2019
end
2120
function s.cfilter(c,e,tp)
22-
return c:IsType(TYPE_XYZ) and c:IsAbleToGraveAsCost()
21+
return c:IsXyzMonster() and c:IsReleasable()
2322
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,c:GetRank(),c)
2423
end
2524
function s.spfilter(c,e,tp,rk,mc)
@@ -33,9 +32,10 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
3332
return e:IsHasType(EFFECT_TYPE_ACTIVATE) and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil,e,tp)
3433
end
3534
e:SetLabel(0)
35+
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
3636
local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE,0,1,1,nil,e,tp)
3737
Duel.SetTargetParam(g:GetFirst():GetRank())
38-
Duel.SendtoGrave(g,REASON_COST)
38+
Duel.Release(g,REASON_COST)
3939
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
4040
end
4141
function s.activate(e,tp,eg,ep,ev,re,r,rp)
@@ -48,4 +48,5 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
4848
Duel.Overlay(sc,c)
4949
end
5050
end
51-
end
51+
aux.DelayedOperation(sc,PHASE_END,id,e,tp,function(ag) Duel.Destroy(ag,REASON_EFFECT) end,nil,0)
52+
end

0 commit comments

Comments
 (0)