|
3 | 3 | local s,id=GetID() |
4 | 4 | function s.initial_effect(c) |
5 | 5 | c:EnableReviveLimit() |
| 6 | + Pendulum.AddProcedure(c,false) |
6 | 7 | --Xyz Summon procedure: 2 Level 7 Dragon monsters |
7 | 8 | Xyz.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsRace,RACE_DRAGON),7,2) |
8 | | - --Pendulum procedure |
9 | | - Pendulum.AddProcedure(c,false) |
10 | 9 | --Place 1 Pendulum monster from your Deck in your other Pendulum Zone |
11 | 10 | local e1=Effect.CreateEffect(c) |
12 | 11 | e1:SetDescription(aux.Stringid(id,0)) |
@@ -50,7 +49,6 @@ function s.initial_effect(c) |
50 | 49 | e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) |
51 | 50 | e5:SetProperty(EFFECT_FLAG_DELAY) |
52 | 51 | e5:SetCode(EVENT_LEAVE_FIELD) |
53 | | - e5:SetCondition(function(e) return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) end) |
54 | 52 | e5:SetTarget(s.pentg) |
55 | 53 | e5:SetOperation(s.penop) |
56 | 54 | c:RegisterEffect(e5) |
@@ -140,13 +138,12 @@ end |
140 | 138 | function s.pentg(e,tp,eg,ep,ev,re,r,rp,chk) |
141 | 139 | local g=Duel.GetFieldGroup(tp,LOCATION_PZONE,0) |
142 | 140 | if chk==0 then return #g>0 end |
143 | | - Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,#g,0,0) |
| 141 | + Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,#g,tp,0) |
144 | 142 | end |
145 | 143 | function s.penop(e,tp,eg,ep,ev,re,r,rp) |
146 | 144 | local c=e:GetHandler() |
147 | | - if not c:IsRelateToEffect(e) then return end |
148 | 145 | local g=Duel.GetFieldGroup(tp,LOCATION_PZONE,0) |
149 | | - if Duel.Destroy(g,REASON_EFFECT)>0 and Duel.CheckPendulumZones(tp) then |
| 146 | + if #g>0 and Duel.Destroy(g,REASON_EFFECT)>0 and c:IsRelateToEffect(e) then |
150 | 147 | Duel.MoveToField(c,tp,tp,LOCATION_PZONE,POS_FACEUP,true) |
151 | 148 | end |
152 | 149 | end |
0 commit comments