Commit 87e60ce9 authored by Fluorohydride's avatar Fluorohydride

fix

parent 1fd8ccc9
......@@ -44,7 +44,7 @@ function c10406322.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.ShuffleHand(tp)
else
Duel.DisableShuffleCheck()
Duel.SendtoGrave(tc,REASON_EFFECT)
Duel.SendtoGrave(tc,REASON_EFFECT+REASON_REVEAL)
end
end
function c10406322.cfilter(c,tp)
......
......@@ -75,7 +75,7 @@ function c18631392.retop(code1,code2,code3)
end
if g:GetCount()~=0 then
Duel.DisableShuffleCheck()
Duel.SendtoGrave(g,REASON_EFFECT)
Duel.SendtoGrave(g,REASON_EFFECT+REASON_REVEAL)
end
if c:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(c)
......
......@@ -37,6 +37,6 @@ function c22796548.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.ShuffleHand(tp)
else
Duel.DisableShuffleCheck()
Duel.SendtoGrave(tc,REASON_EFFECT)
Duel.SendtoGrave(tc,REASON_EFFECT+REASON_REVEAL)
end
end
......@@ -17,22 +17,6 @@ function c25824484.initial_effect(c)
e2:SetCondition(c25824484.sdcon)
e2:SetOperation(c25824484.sdop)
c:RegisterEffect(e2)
if not c25824484.global_check then
c25824484.global_check=true
c25824484[0]=Group.CreateGroup()
c25824484[0]:KeepAlive()
c25824484[1]=0
local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_CONFIRM_DECKTOP)
ge1:SetOperation(c25824484.checkop)
Duel.RegisterEffect(ge1,0)
end
end
function c25824484.checkop(e,tp,eg,ep,ev,re,r,rp)
c25824484[0]:Clear()
c25824484[0]:Merge(eg)
c25824484[1]=re
end
function c25824484.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>0 end
......@@ -44,15 +28,16 @@ function c25824484.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
if tc:IsRace(RACE_PLANT) then
Duel.DisableShuffleCheck()
Duel.SendtoGrave(tc,REASON_EFFECT)
Duel.SendtoGrave(tc,REASON_EFFECT+REASON_REVEAL)
Duel.Draw(tp,1,REASON_EFFECT)
else
Duel.MoveSequence(tc,1)
end
end
function c25824484.sdcon(e,tp,eg,ep,ev,re,r,rp)
return re and e:GetHandler():IsPreviousLocation(LOCATION_DECK)
and c25824484[0]:IsContains(e:GetHandler()) and c25824484[1]==re
local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and
(c:IsReason(REASON_REVEAL) or c:IsPreviousPosition(POS_FACEUP) or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK))
end
function c25824484.sdop(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)
......
......@@ -33,5 +33,5 @@ function c32362575.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.DiscardDeck(tp,dcount-seq-1,REASON_EFFECT)
Duel.ConfirmCards(1-tp,spcard)
Duel.ShuffleHand(tp)
else Duel.DiscardDeck(tp,dcount-seq,REASON_EFFECT) end
else Duel.DiscardDeck(tp,dcount-seq,REASON_EFFECT+REASON_REVEAL) end
end
......@@ -21,22 +21,6 @@ function c36046926.initial_effect(c)
e2:SetTarget(c36046926.destg)
e2:SetOperation(c36046926.desop)
c:RegisterEffect(e2)
if not c36046926.global_check then
c36046926.global_check=true
c36046926[0]=Group.CreateGroup()
c36046926[0]:KeepAlive()
c36046926[1]=0
local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_CONFIRM_DECKTOP)
ge1:SetOperation(c36046926.checkop)
Duel.RegisterEffect(ge1,0)
end
end
function c36046926.checkop(e,tp,eg,ep,ev,re,r,rp)
c36046926[0]:Clear()
c36046926[0]:Merge(eg)
c36046926[1]=re
end
function c36046926.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>0 end
......@@ -54,7 +38,7 @@ function c36046926.operation(e,tp,eg,ep,ev,re,r,rp)
local sg=g:Filter(Card.IsRace,nil,RACE_PLANT)
if sg:GetCount()>0 then
Duel.DisableShuffleCheck()
Duel.SendtoGrave(sg,REASON_EFFECT)
Duel.SendtoGrave(sg,REASON_EFFECT+REASON_REVEAL)
end
ac=ac-sg:GetCount()
if ac>0 then
......@@ -66,8 +50,9 @@ function c36046926.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function c36046926.descon(e,tp,eg,ep,ev,re,r,rp)
return re and e:GetHandler():IsPreviousLocation(LOCATION_DECK)
and c36046926[0]:IsContains(e:GetHandler()) and c36046926[1]==re
local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and
(c:IsReason(REASON_REVEAL) or c:IsPreviousPosition(POS_FACEUP) or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK))
end
function c36046926.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsDestructable() end
......
......@@ -12,6 +12,7 @@ function c38210374.initial_effect(c)
c:RegisterEffect(e1)
--remove material
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(38210374,1))
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e2:SetCode(EVENT_PHASE+PHASE_STANDBY)
e2:SetRange(LOCATION_SZONE)
......
......@@ -51,6 +51,6 @@ function c58577036.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummonComplete()
end
else
Duel.DiscardDeck(tp,dcount-seq,REASON_EFFECT)
Duel.DiscardDeck(tp,dcount-seq,REASON_EFFECT+REASON_REVEAL)
end
end
......@@ -19,22 +19,6 @@ function c62434031.initial_effect(c)
e2:SetTarget(c62434031.tdtg)
e2:SetOperation(c62434031.tdop)
c:RegisterEffect(e2)
if not c62434031.global_check then
c62434031.global_check=true
c62434031[0]=Group.CreateGroup()
c62434031[0]:KeepAlive()
c62434031[1]=0
local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_CONFIRM_DECKTOP)
ge1:SetOperation(c62434031.checkop)
Duel.RegisterEffect(ge1,0)
end
end
function c62434031.checkop(e,tp,eg,ep,ev,re,r,rp)
c62434031[0]:Clear()
c62434031[0]:Merge(eg)
c62434031[1]=re
end
function c62434031.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>0 end
......@@ -46,14 +30,20 @@ function c62434031.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
if tc:IsRace(RACE_PLANT) then
Duel.DisableShuffleCheck()
Duel.SendtoGrave(g,REASON_EFFECT)
Duel.SendtoGrave(g,REASON_EFFECT+REASON_REVEAL)
else
Duel.MoveSequence(tc,1)
end
end
function c62434031.tdcon(e,tp,eg,ep,ev,re,r,rp)
return re and e:GetHandler():IsPreviousLocation(LOCATION_DECK)
and c62434031[0]:IsContains(e:GetHandler()) and c62434031[1]==re
local c=e:GetHandler()
if Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK) then
Debug.Message("Get it!")
else
Debug.Message("oops.")
end
return c:IsPreviousLocation(LOCATION_DECK) and
(c:IsReason(REASON_REVEAL) or c:IsPreviousPosition(POS_FACEUP) or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK))
end
function c62434031.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_DECK,0,1,nil,0x90) end
......
......@@ -10,6 +10,8 @@ function c62966332.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_REVERSE_DECK)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(1,1)
c:RegisterEffect(e2)
end
......@@ -24,22 +24,6 @@ function c63257623.initial_effect(c)
e3:SetTarget(c63257623.sptg)
e3:SetOperation(c63257623.spop)
c:RegisterEffect(e3)
if not c63257623.global_check then
c63257623.global_check=true
c63257623[0]=Group.CreateGroup()
c63257623[0]:KeepAlive()
c63257623[1]=0
local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_CONFIRM_DECKTOP)
ge1:SetOperation(c63257623.checkop)
Duel.RegisterEffect(ge1,0)
end
end
function c63257623.checkop(e,tp,eg,ep,ev,re,r,rp)
c63257623[0]:Clear()
c63257623[0]:Merge(eg)
c63257623[1]=re
end
function c63257623.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>0 end
......@@ -51,14 +35,15 @@ function c63257623.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
if tc:IsRace(RACE_PLANT) then
Duel.DisableShuffleCheck()
Duel.SendtoGrave(g,REASON_EFFECT)
Duel.SendtoGrave(g,REASON_EFFECT+REASON_REVEAL)
else
Duel.MoveSequence(tc,1)
end
end
function c63257623.spcon(e,tp,eg,ep,ev,re,r,rp)
return re and e:GetHandler():IsPreviousLocation(LOCATION_DECK)
and c63257623[0]:IsContains(e:GetHandler()) and c63257623[1]==re
local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and
(c:IsReason(REASON_REVEAL) or c:IsPreviousPosition(POS_FACEUP) or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK))
end
function c63257623.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,63257623)==0 end
......
......@@ -64,7 +64,7 @@ function c70222318.tgop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst()
if tc:IsRace(RACE_PLANT) then
Duel.DisableShuffleCheck()
Duel.SendtoGrave(g,REASON_EFFECT)
Duel.SendtoGrave(g,REASON_EFFECT+REASON_REVEAL)
else
local opt=Duel.SelectOption(tp,aux.Stringid(70222318,1),aux.Stringid(70222318,2))
if opt==1 then
......
......@@ -77,7 +77,7 @@ function c79106360.sp(e,tp,ct)
tc=g:GetNext()
end
if conf-g:GetCount()>0 then
Duel.DiscardDeck(tp,conf-g:GetCount(),REASON_EFFECT)
Duel.DiscardDeck(tp,conf-g:GetCount(),REASON_EFFECT++REASON_REVEAL)
end
return g
end
......@@ -21,22 +21,6 @@ function c99429730.initial_effect(c)
e2:SetTarget(c99429730.tdtg)
e2:SetOperation(c99429730.tdop)
c:RegisterEffect(e2)
if not c99429730.global_check then
c99429730.global_check=true
c99429730[0]=Group.CreateGroup()
c99429730[0]:KeepAlive()
c99429730[1]=0
local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_CONFIRM_DECKTOP)
ge1:SetOperation(c99429730.checkop)
Duel.RegisterEffect(ge1,0)
end
end
function c99429730.checkop(e,tp,eg,ep,ev,re,r,rp)
c99429730[0]:Clear()
c99429730[0]:Merge(eg)
c99429730[1]=re
end
function c99429730.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>0 end
......@@ -54,7 +38,7 @@ function c99429730.operation(e,tp,eg,ep,ev,re,r,rp)
local sg=g:Filter(Card.IsRace,nil,RACE_PLANT)
if sg:GetCount()>0 then
Duel.DisableShuffleCheck()
Duel.SendtoGrave(sg,REASON_EFFECT)
Duel.SendtoGrave(sg,REASON_EFFECT+REASON_REVEAL)
end
ac=ac-sg:GetCount()
if ac>0 then
......@@ -66,8 +50,9 @@ function c99429730.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function c99429730.tdcon(e,tp,eg,ep,ev,re,r,rp)
return re and e:GetHandler():IsPreviousLocation(LOCATION_DECK)
and c99429730[0]:IsContains(e:GetHandler()) and c99429730[1]==re
local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and
(c:IsReason(REASON_REVEAL) or c:IsPreviousPosition(POS_FACEUP) or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK))
end
function c99429730.filter(c)
return c:IsRace(RACE_PLANT) and c:IsAbleToDeck()
......
......@@ -21,22 +21,6 @@ function c99641328.initial_effect(c)
e2:SetTarget(c99641328.destg)
e2:SetOperation(c99641328.desop)
c:RegisterEffect(e2)
if not c99641328.global_check then
c99641328.global_check=true
c99641328[0]=Group.CreateGroup()
c99641328[0]:KeepAlive()
c99641328[1]=0
local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_CONFIRM_DECKTOP)
ge1:SetOperation(c99641328.checkop)
Duel.RegisterEffect(ge1,0)
end
end
function c99641328.checkop(e,tp,eg,ep,ev,re,r,rp)
c99641328[0]:Clear()
c99641328[0]:Merge(eg)
c99641328[1]=re
end
function c99641328.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>0 end
......@@ -54,7 +38,7 @@ function c99641328.operation(e,tp,eg,ep,ev,re,r,rp)
local sg=g:Filter(Card.IsRace,nil,RACE_PLANT)
if sg:GetCount()>0 then
Duel.DisableShuffleCheck()
Duel.SendtoGrave(sg,REASON_EFFECT)
Duel.SendtoGrave(sg,REASON_EFFECT+REASON_REVEAL)
end
ac=ac-sg:GetCount()
if ac>0 then
......@@ -66,8 +50,9 @@ function c99641328.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function c99641328.descon(e,tp,eg,ep,ev,re,r,rp)
return re and e:GetHandler():IsPreviousLocation(LOCATION_DECK)
and c99641328[0]:IsContains(e:GetHandler()) and c99641328[1]==re
local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_DECK) and
(c:IsReason(REASON_REVEAL) or c:IsPreviousPosition(POS_FACEUP) or Duel.IsPlayerAffectedByEffect(tp,EFFECT_REVERSE_DECK))
end
function c99641328.desfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
......
......@@ -101,6 +101,7 @@ REASON_XYZ =0x200000 --
REASON_REPLACE =0x1000000 --
REASON_DRAW =0x2000000 --
REASON_REDIRECT =0x4000000 --
REASON_REVEAL =0x8000000 --
--Summon Type
SUMMON_TYPE_NORMAL =0x10000000
SUMMON_TYPE_ADVANCE =0x11000000
......
......@@ -5,7 +5,7 @@ antialias = 2
errorlog = 1
nickname = Player
gamename = Game
lastdeck = 806
lastdeck = new
textfont = c:/windows/fonts/simsun.ttc 14
numfont = c:/windows/fonts/arialbd.ttf
serverport = 7911
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment