Skip to content

Commit 7613094

Browse files
authored
"Chaos Allure Queen" fix
Fixed an issue when equipping monsters with a "You can only control 1 "X"." effect.
1 parent c378e7f commit 7613094

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

official/c29925614.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp)
8181
if tc:IsRelateToEffect(e) and c:IsRelateToEffect(e) and c:IsFaceup()
8282
and s.equipop(c,e,tp,tc) then
8383
local code=tc:GetCode()
84+
local attr_chk=tc:IsAttribute(ATTRIBUTE_LIGHT|ATTRIBUTE_DARK)
8485
if not c:IsCode(code) then
8586
--This card's name becomes that monster's until the End Phase
8687
local e1=Effect.CreateEffect(c)
@@ -90,11 +91,11 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp)
9091
e1:SetValue(code)
9192
e1:SetReset(RESETS_STANDARD_PHASE_END)
9293
c:RegisterEffect(e1)
94+
Duel.AdjustInstantly(c)
9395
end
94-
if not (tc:IsAttribute(ATTRIBUTE_LIGHT|ATTRIBUTE_DARK) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0) then return end
96+
if not (attr_chk and Duel.GetLocationCount(tp,LOCATION_MZONE)>0) then return end
9597
local sg=Duel.GetMatchingGroup(aux.NecroValleyFilter(s.spfilter),tp,LOCATION_DECK|LOCATION_GRAVE,0,nil,e,tp)
9698
if #sg>0 and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
97-
Duel.AdjustInstantly(c)
9899
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
99100
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.spfilter),tp,LOCATION_DECK|LOCATION_GRAVE,0,1,1,nil,e,tp)
100101
if #g==0 then return end

0 commit comments

Comments
 (0)