Skip to content

Commit 891553e

Browse files
authored
Update "Number 39: Utopia (Anime)
1 parent 7c69721 commit 891553e

File tree

1 file changed

+17
-26
lines changed

1 file changed

+17
-26
lines changed

unofficial/c511002599.lua

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,26 @@
33
Duel.LoadCardScript("c84013237.lua")
44
local s,id=GetID()
55
function s.initial_effect(c)
6-
--xyz summon
7-
Xyz.AddProcedure(c,nil,4,2)
86
c:EnableReviveLimit()
9-
--disable attack
7+
--Xyz Summon procedure: 2 Level 4 monsters
8+
Xyz.AddProcedure(c,nil,4,2)
9+
--Cannot be destroyed by battle, except with "Number" monsters
1010
local e1=Effect.CreateEffect(c)
11-
e1:SetDescription(aux.Stringid(id,0))
12-
e1:SetType(EFFECT_TYPE_QUICK_O)
13-
e1:SetCode(EVENT_FREE_CHAIN)
14-
e1:SetRange(LOCATION_MZONE)
15-
e1:SetCondition(s.condition)
16-
e1:SetCost(s.cost)
17-
e1:SetOperation(s.operation)
18-
c:RegisterEffect(e1,false,REGISTER_FLAG_DETACH_XMAT)
19-
--battle indestructable
11+
e1:SetType(EFFECT_TYPE_SINGLE)
12+
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
13+
e1:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER)))
14+
c:RegisterEffect(e1)
15+
--Negate the attack of 1 monster on the field
2016
local e2=Effect.CreateEffect(c)
21-
e2:SetType(EFFECT_TYPE_SINGLE)
22-
e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
23-
e2:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER)))
24-
c:RegisterEffect(e2)
17+
e2:SetDescription(aux.Stringid(id,0))
18+
e2:SetType(EFFECT_TYPE_QUICK_O)
19+
e2:SetCode(EVENT_FREE_CHAIN)
20+
e2:SetRange(LOCATION_MZONE)
21+
e2:SetCondition(function(e) return Duel.GetAttacker() and not e:GetHandler():IsStatus(STATUS_CHAINING) end)
22+
e2:SetCost(Cost.Detach(1))
23+
e2:SetOperation(function(e,tp,eg,ep,ev,re,r,rp) Duel.NegateAttack() end)
24+
c:RegisterEffect(e2,false,REGISTER_FLAG_DETACH_XMAT)
25+
2526
end
2627
s.listed_series={SET_NUMBER}
2728
s.xyz_number=39
28-
function s.condition(e,tp,eg,ep,ev,re,r,rp)
29-
return Duel.GetAttacker() and not e:GetHandler():IsStatus(STATUS_CHAINING)
30-
end
31-
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
32-
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
33-
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
34-
end
35-
function s.operation(e,tp,eg,ep,ev,re,r,rp)
36-
Duel.NegateAttack()
37-
end

0 commit comments

Comments
 (0)