Skip to content

Commit 4cec7bd

Browse files
authored
Update "Number 33: Chronomaly Machu Mech (Anime)"
- Script polish
1 parent 571c4af commit 4cec7bd

1 file changed

Lines changed: 21 additions & 23 deletions

File tree

unofficial/c511002091.lua

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,31 @@ Duel.EnableUnofficialProc(PROC_STATS_CHANGED)
44
Duel.LoadCardScript("c39139935.lua")
55
local s,id=GetID()
66
function s.initial_effect(c)
7-
--xyz summon
8-
Xyz.AddProcedure(c,nil,5,2)
97
c:EnableReviveLimit()
10-
--activate
8+
--Xyz Summon procedure: 2 Level 5 monsters
9+
Xyz.AddProcedure(c,nil,5,2)
10+
--Cannot be destroyed by battle, except with a "Number" monster
1111
local e1=Effect.CreateEffect(c)
12-
e1:SetDescription(aux.Stringid(id,0))
13-
e1:SetCategory(CATEGORY_DAMAGE)
14-
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_PLAYER_TARGET)
15-
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
16-
e1:SetCode(511001265)
17-
e1:SetRange(LOCATION_MZONE)
18-
e1:SetCountLimit(1)
19-
e1:SetCondition(s.damcon)
20-
e1:SetCost(Cost.DetachFromSelf(1))
21-
e1:SetTarget(s.damtg)
22-
e1:SetOperation(s.damop)
12+
e1:SetType(EFFECT_TYPE_SINGLE)
13+
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
14+
e1:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER)))
2315
c:RegisterEffect(e1)
24-
--battle indestructable
25-
local e3=Effect.CreateEffect(c)
26-
e3:SetType(EFFECT_TYPE_SINGLE)
27-
e3:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
28-
e3:SetValue(s.indes)
29-
c:RegisterEffect(e3)
16+
--When a monster's ATK is changed: You can detach 1 material from this card; inflict damage to your opponent equal to that change in ATK
17+
local e2=Effect.CreateEffect(c)
18+
e2:SetDescription(aux.Stringid(id,0))
19+
e2:SetCategory(CATEGORY_DAMAGE)
20+
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
21+
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_PLAYER_TARGET)
22+
e2:SetCode(511001265)
23+
e2:SetRange(LOCATION_MZONE)
24+
e2:SetCountLimit(1)
25+
e2:SetCondition(s.damcon)
26+
e2:SetCost(Cost.DetachFromSelf(1))
27+
e2:SetTarget(s.damtg)
28+
e2:SetOperation(s.damop)
29+
c:RegisterEffect(e2)
3030
end
31+
s.listed_series={SET_NUMBER}
3132
s.xyz_number=33
3233
function s.cfilter(c)
3334
local val=0
@@ -73,6 +74,3 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp)
7374
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
7475
Duel.Damage(p,d,REASON_EFFECT)
7576
end
76-
function s.indes(e,c)
77-
return not c:IsSetCard(SET_NUMBER)
78-
end

0 commit comments

Comments
 (0)