Skip to content

Commit aeb606c

Browse files
authored
"RV01" official release script updates
1 parent f0731de commit aeb606c

21 files changed

Lines changed: 6 additions & 5 deletions
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
--Dark-Eyes Illusionist Faceless Mage
33
--scripted by Naim
44
local s,id=GetID()
5+
local CARD_MIND_SCAN=34298391
56
function s.initial_effect(c)
67
--If this card battles a monster, neither can be destroyed by that battle
78
local e1=Effect.CreateEffect(c)
@@ -23,13 +24,13 @@ function s.initial_effect(c)
2324
e2:SetOperation(s.effop)
2425
c:RegisterEffect(e2)
2526
end
26-
s.listed_names={100455007,CARD_TOON_WORLD} --"Mind Scan"
27+
s.listed_names={CARD_MIND_SCAN,CARD_TOON_WORLD} --"Mind Scan"
2728
function s.indestg(e,c)
2829
local handler=e:GetHandler()
2930
return c==handler or c==handler:GetBattleTarget()
3031
end
3132
function s.plfilter(c,tp)
32-
return c:IsCode(100455007) and not c:IsForbidden() and c:CheckUniqueOnField(tp)
33+
return c:IsCode(CARD_MIND_SCAN) and not c:IsForbidden() and c:CheckUniqueOnField(tp)
3334
end
3435
function s.thfilter(c)
3536
return c:IsMonster() and c:ListsCode(CARD_TOON_WORLD) and c:IsAbleToHand()
@@ -39,7 +40,7 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
3940
and Duel.IsExistingMatchingCard(s.plfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,tp)
4041
and not Duel.HasFlagEffect(tp,id)
4142
local b2=Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_GRAVE,0,1,e:GetHandler())
42-
and not Duel.HasFlagEffect(tp,id+100)
43+
and not Duel.HasFlagEffect(tp,id+1)
4344
if chk==0 then return b1 or b2 end
4445
local op=Duel.SelectEffect(tp,
4546
{b1,aux.Stringid(id,1)},
@@ -51,7 +52,7 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
5152
elseif op==2 then
5253
e:GetHandler():CreateEffectRelation(e)
5354
e:SetCategory(CATEGORY_TOHAND+CATEGORY_SPECIAL_SUMMON)
54-
Duel.RegisterFlagEffect(tp,id+100,RESET_PHASE|PHASE_END,0,1)
55+
Duel.RegisterFlagEffect(tp,id+1,RESET_PHASE|PHASE_END,0,1)
5556
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE)
5657
Duel.SetPossibleOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
5758
end

0 commit comments

Comments
 (0)