Skip to content

Commit 741d38f

Browse files
authored
fix "Mind Mirror Force"
* should protect every copy of the card from negation, not just the first copy that was loaded * should ensure the negation has finished processing before destroying the cards; otherwise, cards get to use their destruction replacement effects which should already be negated
1 parent 7f5ca77 commit 741d38f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

pre-release/c100457102.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
local s,id=GetID()
55
function s.initial_effect(c)
66
--If your opponent controls 5 or more face-up cards, this card's activation and effect cannot be negated, also you can activate this card the turn it was Set
7+
c:RegisterFlagEffect(id,0,0,1)
78
aux.GlobalCheck(s,function()
89
local ge1=Effect.CreateEffect(c)
910
ge1:SetType(EFFECT_TYPE_FIELD)
1011
ge1:SetCode(EFFECT_CANNOT_INACTIVATE)
1112
ge1:SetValue(function(e,ch)
1213
local trig_eff=Chain.GetTriggeringEffect(ch)
1314
local trig_player=Chain.GetTriggeringPlayer(ch)
14-
return trig_eff:GetHandler()==c and Duel.GetMatchingGroupCount(Card.IsFaceup,trig_player,0,LOCATION_ONFIELD,nil)>=5
15+
return trig_eff:GetHandler():HasFlagEffect(id) and Duel.GetMatchingGroupCount(Card.IsFaceup,trig_player,0,LOCATION_ONFIELD,nil)>=5
1516
end)
1617
Duel.RegisterEffect(ge1,0)
1718
local ge2=ge1:Clone()
@@ -79,6 +80,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
7980
--Negate the effects of as many face-up cards your opponent controls as possible, and if you do, destroy them
8081
nc:NegateEffects(c)
8182
end
83+
Duel.AdjustInstantly()
8284
Duel.Destroy(g,REASON_EFFECT)
8385
end
8486
if not e:IsHasType(EFFECT_TYPE_ACTIVATE) then return end
@@ -90,4 +92,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
9092
e1:SetTargetRange(LOCATION_MZONE,0)
9193
e1:SetReset(RESET_PHASE|PHASE_END,2)
9294
Duel.RegisterEffect(e1,tp)
93-
end
95+
end

0 commit comments

Comments
 (0)