Skip to content

Commit a2a7925

Browse files
authored
"You're Finished" fix
Updated the scritp to match the following rulings: - If you have no available Spell & Trap Zones when you would set it during the End Phase it should be be sent to the Graveyard instead of being Set. - If you cannot Set cards when you would set it during the End Phase this card should remain in the Monster Zone.
1 parent b7cb50e commit a2a7925

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

official/c88346805.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,11 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
4848
end
4949
function s.setop(ag,e,tp,eg,ep,ev,re,r,rp)
5050
local c=ag:GetFirst()
51-
if c:IsLocation(LOCATION_MZONE) and c:IsSSetable(true) then
51+
if not (c:IsLocation(LOCATION_MZONE) and Duel.CanPlayerSetSpellTrap(tp,c)) then return end
52+
if c:IsSSetable() then
5253
Duel.SSet(tp,c,tp,false)
54+
else
55+
Duel.SendtoGrave(c,REASON_RULE)
5356
end
5457
end
5558
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)
@@ -64,4 +67,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
6467
Duel.BreakEffect()
6568
Duel.SSet(tp,c,tp,false)
6669
end
67-
end
70+
end

0 commit comments

Comments
 (0)