|
2 | 2 | --Dark Psycho Eye |
3 | 3 | local s,id=GetID() |
4 | 4 | function s.initial_effect(c) |
5 | | - --control |
| 5 | + --Gain control of 1 opponent's monster until the End Phase |
6 | 6 | local e1=Effect.CreateEffect(c) |
7 | 7 | e1:SetCategory(CATEGORY_CONTROL) |
8 | | - e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) |
| 8 | + e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) |
9 | 9 | e1:SetProperty(EFFECT_FLAG_CARD_TARGET) |
10 | 10 | e1:SetCode(EVENT_DESTROYED) |
11 | 11 | e1:SetTarget(s.target) |
12 | 12 | e1:SetOperation(s.operation) |
13 | 13 | c:RegisterEffect(e1) |
14 | 14 | end |
15 | | -function s.filter(c) |
16 | | - return c:IsFaceup() and c:IsControlerCanBeChanged() |
17 | | -end |
18 | 15 | 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 |
21 | 18 | 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) |
23 | 20 | Duel.SetOperationInfo(0,CATEGORY_CONTROL,g,1,0,0) |
24 | 21 | end |
25 | 22 | function s.operation(e,tp,eg,ep,ev,re,r,rp) |
26 | 23 | local tc=Duel.GetFirstTarget() |
27 | | - if tc and tc:IsRelateToEffect(e) and tc:IsFaceup() then |
| 24 | + if tc and tc:IsRelateToEffect(e) then |
28 | 25 | Duel.GetControl(tc,tp,PHASE_END,1) |
29 | 26 | end |
30 | 27 | end |
0 commit comments