|
4 | 4 | local s,id=GetID() |
5 | 5 | function s.initial_effect(c) |
6 | 6 | --Treat Level 7 Earth Machines as different names |
7 | | - local e0=Effect.CreateEffect(c) |
8 | | - e0:SetType(EFFECT_TYPE_FIELD) |
9 | | - e0:SetCode(EFFECT_ADD_CODE) |
10 | | - e0:SetRange(LOCATION_HAND|LOCATION_SZONE) |
11 | | - e0:SetTargetRange(LOCATION_MZONE,0) |
12 | | - e0:SetTarget(function(_,c)return c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_EARTH) and c:IsLevel(7) end) |
13 | | - e0:SetValue(CARD_BLUETOOTH_B_DRAGON) |
14 | | - e0:SetOperation(s.chngcon) |
15 | | - c:RegisterEffect(e0) |
16 | | - local e1=e0:Clone() |
17 | | - e1:SetValue(CARD_REDBOOT_B_DRAGON) |
18 | | - c:RegisterEffect(e1) |
| 7 | + aux.GlobalCheck(s,function() |
| 8 | + local e0=Effect.CreateEffect(c) |
| 9 | + e0:SetType(EFFECT_TYPE_FIELD) |
| 10 | + e0:SetCode(EFFECT_ADD_CODE) |
| 11 | + e0:SetTargetRange(LOCATION_MZONE,0) |
| 12 | + e0:SetTarget(function(_,c)return c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_EARTH) and c:IsLevel(7) end) |
| 13 | + e0:SetValue(CARD_BLUETOOTH_B_DRAGON) |
| 14 | + e0:SetOperation(s.chngcon) |
| 15 | + Duel.RegisterEffect(e0,0) |
| 16 | + local e1=e0:Clone() |
| 17 | + e1:SetValue(CARD_REDBOOT_B_DRAGON) |
| 18 | + Duel.RegisterEffect(e1,0) |
| 19 | + end) |
19 | 20 | --Activate |
20 | 21 | local e2=Fusion.RegisterSummonEff(c,aux.FilterBoolFunction(s.fusfilter),Fusion.OnFieldMat(Card.IsFaceup),nil,nil,nil,s.stage2) |
21 | 22 | e2:SetCondition(s.condition) |
|
0 commit comments