Commit ff3a9567 authored by Tachibana's avatar Tachibana

1145141919810

parent 8d4fcc87
Pipeline #14466 passed with stages
in 29 minutes and 40 seconds
No preview for this file type
expansions/pics/81011125.jpg

69 KB | W: | H:

expansions/pics/81011125.jpg

111 KB | W: | H:

expansions/pics/81011125.jpg
expansions/pics/81011125.jpg
expansions/pics/81011125.jpg
expansions/pics/81011125.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/81011126.jpg

58.9 KB | W: | H:

expansions/pics/81011126.jpg

143 KB | W: | H:

expansions/pics/81011126.jpg
expansions/pics/81011126.jpg
expansions/pics/81011126.jpg
expansions/pics/81011126.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/81011127.jpg

65.9 KB | W: | H:

expansions/pics/81011127.jpg

108 KB | W: | H:

expansions/pics/81011127.jpg
expansions/pics/81011127.jpg
expansions/pics/81011127.jpg
expansions/pics/81011127.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/81011128.jpg

66.7 KB | W: | H:

expansions/pics/81011128.jpg

113 KB | W: | H:

expansions/pics/81011128.jpg
expansions/pics/81011128.jpg
expansions/pics/81011128.jpg
expansions/pics/81011128.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/81011130.jpg

64 KB | W: | H:

expansions/pics/81011130.jpg

104 KB | W: | H:

expansions/pics/81011130.jpg
expansions/pics/81011130.jpg
expansions/pics/81011130.jpg
expansions/pics/81011130.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/81011131.jpg

60.3 KB | W: | H:

expansions/pics/81011131.jpg

101 KB | W: | H:

expansions/pics/81011131.jpg
expansions/pics/81011131.jpg
expansions/pics/81011131.jpg
expansions/pics/81011131.jpg
  • 2-up
  • Swipe
  • Onion skin
......@@ -59,25 +59,34 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)~=0 and Duel.GetTurnPlayer()~=tp then
--cannot attack
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_ONLY_ATTACK_MONSTER)
e1:SetTargetRange(0,LOCATION_MZONE)
e1:SetValue(cm.atklimit)
e1:SetLabel(tc:GetRealFieldID())
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
tc:RegisterFlagEffect(m,RESET_EVENT+RESETS_STANDARD-RESET_TURN_SET+RESET_PHASE+PHASE_END,0,0)
--cannot be target
local e2=Effect.CreateEffect(c)
e2:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetRange(LOCATION_MZONE)
e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e2:SetCode(EFFECT_CANNOT_BE_BATTLE_TARGET)
e2:SetTargetRange(LOCATION_ONFIELD,0)
e2:SetTarget(cm.tgtg)
e2:SetLabelObject(tc)
e2:SetValue(aux.imval1)
e2:SetValue(aux.tgoval)
e2:SetReset(RESET_PHASE+PHASE_END)
c:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e3:SetValue(aux.tgoval)
c:RegisterEffect(e3)
tc:RegisterEffect(e2,true)
end
end
function cm.atklimit(e,c)
return c:GetRealFieldID()==e:GetLabel()
end
function cm.tgtg(e,c)
return c~=e:GetLabelObject()
return c~=e:GetHandler()
end
--SpecialSummon self
function cm.scon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -44,21 +44,105 @@ local cate_table_for_reikai={
['ct'] = CATEGORY_COUNTER,
['des'] = CATEGORY_DESTROY,
}
function rk.set(code,setcode)
function rk.set(code,setcode,rkflag,excode)
if not _G["c"..code] then _G["c"..code]={}
setmetatable(_G["c"..code],Card)
_G["c"..code].__index=_G["c"..code]
end
local ccodem=_G["c"..code]
local ccodem=_G["c"..code]
if setcode and not ccodem.rksetcode then
ccodem.rksetcode=setcode
end
if rkflag==1 then
ccodem.rkcheck=true
end
if not rk.Dalogcheck then
rk.Dalogcheck=true
local e1=Effect.GlobalEffect()
e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
e1:SetCode(EVENT_CHAINING)
e1:SetCondition(rk.Dalogactcon)
e1:SetOperation(rk.Dalogactop)
Duel.RegisterEffect(e1,0)
local e2=Effect.GlobalEffect()
e2:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetCondition(rk.Dalogscon)
e2:SetOperation(rk.Dalogsop)
Duel.RegisterEffect(e2,0)
local e3=e2:Clone()
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
Duel.RegisterEffect(e3,0)
end
if excode then
local e2=Effect.GlobalEffect()
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_PREDRAW)
e2:SetOperation(function(e)
Duel.CreateToken(0,excode)
e:Reset()
end)
Duel.RegisterEffect(e2,0)
end
return code,ccodem
end
function rk.rkcardcheck(c)
return c.rkcheck==true
end
function rk.Dalogactcon(e,tp,eg,ep,ev,re,r,rp)
return re:GetHandler().rkcheck==true and re:IsHasType(EFFECT_TYPE_ACTIVATE)
end
function rk.Dalogactop(e,tp,eg,ep,ev,re,r,rp)
local og=eg:Filter(rk.rkcardcheck,nil)
for tc in aux.Next(og) do
local codefordal=tc:GetOriginalCode()
Duel.Hint(24,0,aux.Stringid(codefordal,9))
Duel.Hint(24,0,aux.Stringid(codefordal,10))
Duel.Hint(24,0,aux.Stringid(codefordal,11))
end
end
function rk.Dalogscon(e,tp,eg)
return eg:IsExists(rk.rkcardcheck,1,nil)
end
function rk.Dalogsop(e,tp,eg)
local og=eg:Filter(rk.rkcardcheck,nil)
for tc in aux.Next(og) do
local codefordal=tc:GetOriginalCode()
Duel.Hint(24,0,aux.Stringid(codefordal,12))
Duel.Hint(24,0,aux.Stringid(codefordal,13))
Duel.Hint(24,0,aux.Stringid(codefordal,14))
end
end
function rk.strgive(e,c,str,reset,count,hint)
c:RegisterFlagEffect(16199999,reset,EFFECT_FLAG_CLIENT_HINT,count,0,hint)
if not GiveString[c] then
GiveString[c]={}
if GiveString[c][str]==nil then
table.insert(GiveString[c],str)
end
end
GiveString[c][str]=true
local e0=Effect.CreateEffect(e:GetHandler())
e0:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e0:SetCode(EVENT_ADJUST)
e0:SetCondition(rk.copyconcheck)
e0:SetLabelObject(c)
e0:SetOperation(function (e,tp)
GiveString[c][str]=false
e:Reset()
end)
Duel.RegisterEffect(e0,0)
end
function rk.copyconcheck(e,tp)
return e:GetLabelObject():GetFlagEffect(16199999)==0 and GiveString[c][str]
end
function rk.check(c,str)
local code1,code2=c:GetCode()
local subtr=nil
local subtr2=nil
if GiveString[c] and GiveString[c][str] and GiveString[c][str]==true then
return true
end
if code1 then
if not _G["c"..code1] then _G["c"..code1]={}
setmetatable(_G["c"..code1],Card)
......@@ -80,6 +164,7 @@ function rk.check(c,str)
return false
end
if not Card.check then
GiveString={}
Card.check=rk.check
end
function rk.bin(str1,substr)
......@@ -123,7 +208,7 @@ end
function rk.Loc_Bin(loc)
return rk.bin('loc',loc)
end
function rk.Cate_Bin(cate)
function rk.Cate_Bin(cate)
return rk.bin('cate',cate)
end
function rk.Self_Select_Deck(player,f,min,max,exg,...)
......@@ -147,32 +232,67 @@ function rk.selectcard(sel_p,tar_p,f,loc,loc1,min,max,exg,...)
end
return Duel.SelectMatchingCard(sel_p,f,tar_p,loc,loc1,min,max,exg,...)
end
function rk.side_do(c)
--back
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e0:SetCode(EVENT_ADJUST)
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_UNCOPYABLE)
e0:SetCondition(rk.backon)
e0:SetOperation(rk.backop)
Duel.RegisterEffect(e0,tp)
return e0
end
function rk.checkitside(c)
return c.code and c.side_code and c:GetFlagEffect(16100000)==0 and c:GetOriginalCode()==c.side_code
end
function rk.backon(e,tp,eg,ep,ev,re,r,rp)
local dg=Duel.GetMatchingGroup(rk.checkitside,tp,0x7f,0x7f,nil)
return dg:GetCount()>0
end
function rk.backop(e,tp,eg,ep,ev,re,r,rp)
local dg=Duel.GetMatchingGroup(rk.checkitside,tp,0x7f,0x7f,nil)
for c in aux.Next(dg) do
local tcode=c.code
c:SetEntityCode(tcode)
if c:IsFacedown() then
Duel.ConfirmCards(1-tp,Group.FromCards(c))
end
c:ReplaceEffect(tcode,0,0)
Duel.Hint(HINT_CARD,0,tcode)
if c:IsLocation(LOCATION_HAND) then
local sp=c:GetControler()
Duel.ShuffleHand(sp)
end
end
Duel.Readjust()
end
function rk.yk(c,loc)
local tc=c
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_ADJUST)
e1:SetRange(loc)
e1:SetCondition(rk.ykcon2)
e1:SetOperation(rk.op2)
tc:RegisterEffect(e1)
return e1,e2,e3,e4,e5
local tc=c
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_ADJUST)
e1:SetRange(loc)
e1:SetCondition(rk.ykcon2)
e1:SetOperation(rk.op2)
tc:RegisterEffect(e1)
return e1,e2,e3,e4,e5
end
function rk.ykcon2(e,tp)
local c=e:GetHandler()
local ph=Duel.GetCurrentPhase()
if c:GetFlagEffect(16199990)==0 then
c:RegisterFlagEffect(16199990,RESET_EVENT+RESETS_STANDARD,0,0,0)
c:RegisterFlagEffect(16199990+1,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+ph,0,0,0)
end
return c:IsAbleToRemove() and c:GetFlagEffect(16199990+1)==0
local c=e:GetHandler()
local ph=Duel.GetCurrentPhase()
if c:GetFlagEffect(16199990)==0 then
c:RegisterFlagEffect(16199990,RESET_EVENT+RESETS_STANDARD,0,0,0)
c:RegisterFlagEffect(16199990+1,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+ph,0,0,0)
end
return c:IsAbleToRemove() and c:GetFlagEffect(16199990+1)==0
end
function rk.ykcon1(e,tp)
local c=e:GetHandler()
return c:IsAbleToRemove()
local c=e:GetHandler()
return c:IsAbleToRemove()
end
function rk.op2(e,tp)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT)
end
function rk.effectg(c,code)
local tc=c
......@@ -246,8 +366,8 @@ function rk.indes1(c,code,att)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(0,1)
e1:SetTarget(function (e,c,sump,sumtype,sumpos,targetp)
return c:GetAttribute()==att
end)
return c:GetAttribute()==att
end)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
......@@ -255,9 +375,9 @@ end)
e2:SetCode(EFFECT_CANNOT_ACTIVATE)
e2:SetTargetRange(0,1)
e2:SetValue(function (e,re,tp)
return re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsAttribute(att)
end)
return re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsAttribute(att)
end)
e2:SetRange(LOCATION_SZONE)
tc:RegisterEffect(e2)
return e1,e2
end
\ No newline at end of file
end
......@@ -55,14 +55,19 @@ function c65020210.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
end
end
function c65020210.grop(e,tp,eg,ep,ev,re,r,rp)
c65020210.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsPlayerAffectedByEffect(tp,65020218) or Duel.IsPlayerAffectedByEffect(tp,65020220) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
if Duel.GetFlagEffect(tp,65020221)>0 then
c65020210.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020220) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020210.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020210.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020210.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020220)>0 then
c65020210.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020210.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020210.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020218)>0 then
c65020210.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020210.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
else
c65020210.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
end
end
......@@ -88,14 +93,19 @@ function c65020210.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
end
function c65020210.hdop(e,tp,eg,ep,ev,re,r,rp)
c65020210.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsPlayerAffectedByEffect(tp,65020217) or Duel.IsPlayerAffectedByEffect(tp,65020219) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
if Duel.GetFlagEffect(tp,65020221)>0 then
c65020210.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020219) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020210.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020210.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020210.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020219)>0 then
c65020210.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020210.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020210.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020217)>0 then
c65020210.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020210.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
else
c65020210.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
end
\ No newline at end of file
......@@ -47,14 +47,19 @@ function c65020211.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
end
end
function c65020211.grop(e,tp,eg,ep,ev,re,r,rp)
c65020211.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsPlayerAffectedByEffect(tp,65020218) or Duel.IsPlayerAffectedByEffect(tp,65020220) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
if Duel.GetFlagEffect(tp,65020221)>0 then
c65020211.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020220) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020211.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020211.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020211.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020220)>0 then
c65020211.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020211.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020211.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020218)>0 then
c65020211.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020211.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
else
c65020211.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
end
end
......@@ -79,14 +84,19 @@ function c65020211.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
end
function c65020211.hdop(e,tp,eg,ep,ev,re,r,rp)
c65020211.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsPlayerAffectedByEffect(tp,65020217) or Duel.IsPlayerAffectedByEffect(tp,65020219) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
if Duel.GetFlagEffect(tp,65020221)>0 then
c65020211.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020219) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020211.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020211.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020211.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020219)>0 then
c65020211.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020211.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020211.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020217)>0 then
c65020211.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020211.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
else
c65020211.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
end
......@@ -54,14 +54,19 @@ function c65020212.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(65020212,0))
end
function c65020212.grop(e,tp,eg,ep,ev,re,r,rp)
c65020212.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsPlayerAffectedByEffect(tp,65020218) or Duel.IsPlayerAffectedByEffect(tp,65020220) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
if Duel.GetFlagEffect(tp,65020221)>0 then
c65020212.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020220) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020212.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020212.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020212.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020220)>0 then
c65020212.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020212.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020212.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020218)>0 then
c65020212.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020212.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
else
c65020212.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
end
end
......@@ -93,14 +98,19 @@ function c65020212.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
end
function c65020212.hdop(e,tp,eg,ep,ev,re,r,rp)
c65020212.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsPlayerAffectedByEffect(tp,65020217) or Duel.IsPlayerAffectedByEffect(tp,65020219) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
if Duel.GetFlagEffect(tp,65020221)>0 then
c65020212.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020219) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020212.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020212.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020212.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020219)>0 then
c65020212.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020212.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020212.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020217)>0 then
c65020212.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020212.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
else
c65020212.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
end
......@@ -53,14 +53,19 @@ function c65020213.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
end
end
function c65020213.grop(e,tp,eg,ep,ev,re,r,rp)
c65020213.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsPlayerAffectedByEffect(tp,65020218) or Duel.IsPlayerAffectedByEffect(tp,65020220) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
if Duel.GetFlagEffect(tp,65020221)>0 then
c65020213.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020220) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020213.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020213.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020213.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020220)>0 then
c65020213.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020213.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020213.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020218)>0 then
c65020213.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020213.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
else
c65020213.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
end
end
......@@ -72,7 +77,7 @@ function c65020213.hdcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(g,REASON_COST+REASON_DISCARD)
end
function c65020213.hdfil(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0xadaa) and c:IsAbleToHand()
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0xadaa) and c:IsAbleToHand() and c:IsFaceup()
end
function c65020213.hdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c65020213.hdfil,tp,LOCATION_REMOVED,0,1,nil) end
......@@ -86,14 +91,19 @@ function c65020213.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
end
function c65020213.hdop(e,tp,eg,ep,ev,re,r,rp)
c65020213.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsPlayerAffectedByEffect(tp,65020217) or Duel.IsPlayerAffectedByEffect(tp,65020219) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
if Duel.GetFlagEffect(tp,65020221)>0 then
c65020213.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020219) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020213.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020213.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020213.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020219)>0 then
c65020213.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020213.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020213.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020217)>0 then
c65020213.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020213.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
else
c65020213.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
end
......@@ -47,14 +47,19 @@ function c65020214.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
end
end
function c65020214.grop(e,tp,eg,ep,ev,re,r,rp)
c65020214.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsPlayerAffectedByEffect(tp,65020218) or Duel.IsPlayerAffectedByEffect(tp,65020220) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
if Duel.GetFlagEffect(tp,65020221)>0 then
c65020214.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020220) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020214.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020214.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020214.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020220)>0 then
c65020214.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020214.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020214.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020218)>0 then
c65020214.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020214.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
else
c65020214.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
end
end
......@@ -82,14 +87,19 @@ function c65020214.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
end
function c65020214.hdop(e,tp,eg,ep,ev,re,r,rp)
c65020214.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsPlayerAffectedByEffect(tp,65020217) or Duel.IsPlayerAffectedByEffect(tp,65020219) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
if Duel.GetFlagEffect(tp,65020221)>0 then
c65020214.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020219) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020214.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020214.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020214.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020219)>0 then
c65020214.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020214.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020214.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020217)>0 then
c65020214.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020214.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
else
c65020214.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
end
......@@ -45,14 +45,19 @@ function c65020215.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
end
function c65020215.grop(e,tp,eg,ep,ev,re,r,rp)
c65020215.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsPlayerAffectedByEffect(tp,65020218) or Duel.IsPlayerAffectedByEffect(tp,65020220) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
if Duel.GetFlagEffect(tp,65020221)>0 then
c65020215.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020220) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020215.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020215.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020215.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020220)>0 then
c65020215.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020215.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020215.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020218)>0 then
c65020215.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020215.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
else
c65020215.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
end
end
......@@ -78,14 +83,19 @@ function c65020215.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
end
function c65020215.hdop(e,tp,eg,ep,ev,re,r,rp)
c65020215.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsPlayerAffectedByEffect(tp,65020217) or Duel.IsPlayerAffectedByEffect(tp,65020219) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
if Duel.GetFlagEffect(tp,65020221)>0 then
c65020215.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020219) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020215.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020215.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020215.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020219)>0 then
c65020215.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020215.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020215.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020217)>0 then
c65020215.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020215.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
else
c65020215.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
end
......@@ -58,14 +58,19 @@ function c65020216.retop(e,tp,eg,ep,ev,re,r,rp)
Duel.ReturnToField(e:GetLabelObject())
end
function c65020216.grop(e,tp,eg,ep,ev,re,r,rp)
c65020216.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsPlayerAffectedByEffect(tp,65020218) or Duel.IsPlayerAffectedByEffect(tp,65020220) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
if Duel.GetFlagEffect(tp,65020221)>0 then
c65020216.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020220) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020216.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020216.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020216.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020220)>0 then
c65020216.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020216.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020216.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020218)>0 then
c65020216.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
c65020216.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
else
c65020216.chongfuopg(e,tp,eg,ep,ev,re,r,rp)
end
end
......@@ -128,14 +133,19 @@ function c65020216.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)
end
function c65020216.hdop(e,tp,eg,ep,ev,re,r,rp)
c65020216.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsPlayerAffectedByEffect(tp,65020217) or Duel.IsPlayerAffectedByEffect(tp,65020219) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
if Duel.GetFlagEffect(tp,65020221)>0 then
c65020216.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020219) or Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020216.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
if Duel.IsPlayerAffectedByEffect(tp,65020221) then
c65020216.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020216.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020219)>0 then
c65020216.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020216.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020216.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
elseif Duel.GetFlagEffect(tp,65020217)>0 then
c65020216.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
c65020216.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
else
c65020216.chongfuoph(e,tp,eg,ep,ev,re,r,rp)
end
end
......@@ -7,7 +7,7 @@ function c65020217.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetCode(65020217)
e2:SetCode(0x10000000+65020217)
e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(1,0)
c:RegisterEffect(e2)
......
......@@ -7,7 +7,7 @@ function c65020218.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetCode(65020218)
e2:SetCode(0x10000000+65020218)
e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(1,0)
c:RegisterEffect(e2)
......
......@@ -19,7 +19,7 @@ function c65020219.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetCode(65020219)
e2:SetCode(0x10000000+65020219)
e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(1,0)
c:RegisterEffect(e2)
......
......@@ -19,7 +19,7 @@ function c65020220.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetCode(65020220)
e2:SetCode(0x10000000+65020220)
e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(1,0)
c:RegisterEffect(e2)
......
......@@ -15,7 +15,7 @@ function c65020221.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetCode(65020221)
e2:SetCode(0x10000000+65020221)
e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(1,0)
c:RegisterEffect(e2)
......
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