Skip to content

Commit 6e9d4d5

Browse files
authored
Update "Dark Psycho Eye"
-Control effect should be mandatory -Monster does not need to be face-up according to lore
1 parent 42e8eeb commit 6e9d4d5

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

unofficial/c100000033.lua

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,26 @@
22
--Dark Psycho Eye
33
local s,id=GetID()
44
function s.initial_effect(c)
5-
--control
5+
--Gain control of 1 opponent's monster until the End Phase
66
local e1=Effect.CreateEffect(c)
77
e1:SetCategory(CATEGORY_CONTROL)
8-
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
8+
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
99
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
1010
e1:SetCode(EVENT_DESTROYED)
1111
e1:SetTarget(s.target)
1212
e1:SetOperation(s.operation)
1313
c:RegisterEffect(e1)
1414
end
15-
function s.filter(c)
16-
return c:IsFaceup() and c:IsControlerCanBeChanged()
17-
end
1815
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
19-
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and s.filter(chkc) end
20-
if chk==0 then return Duel.IsExistingTarget(s.filter,tp,0,LOCATION_MZONE,1,nil) end
16+
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and chkc:IsControlerCanBeChanged() end
17+
if chk==0 then return Duel.IsExistingTarget(Card.IsControlerCanBeChanged,tp,0,LOCATION_MZONE,1,nil) end
2118
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL)
22-
local g=Duel.SelectTarget(tp,s.filter,tp,0,LOCATION_MZONE,1,1,nil)
19+
local g=Duel.SelectTarget(tp,Card.IsControlerCanBeChanged,tp,0,LOCATION_MZONE,1,1,nil)
2320
Duel.SetOperationInfo(0,CATEGORY_CONTROL,g,1,0,0)
2421
end
2522
function s.operation(e,tp,eg,ep,ev,re,r,rp)
2623
local tc=Duel.GetFirstTarget()
27-
if tc and tc:IsRelateToEffect(e) and tc:IsFaceup() then
24+
if tc and tc:IsRelateToEffect(e) then
2825
Duel.GetControl(tc,tp,PHASE_END,1)
2926
end
3027
end

0 commit comments

Comments
 (0)