Commit 6f7b801b authored by Huangnan's avatar Huangnan

fix

parent 47a1e3c9
expansions/pics/1007002.jpg

16 KB | W: | H:

expansions/pics/1007002.jpg

140 KB | W: | H:

expansions/pics/1007002.jpg
expansions/pics/1007002.jpg
expansions/pics/1007002.jpg
expansions/pics/1007002.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/16400601.jpg

32.9 KB | W: | H:

expansions/pics/16400601.jpg

90.1 KB | W: | H:

expansions/pics/16400601.jpg
expansions/pics/16400601.jpg
expansions/pics/16400601.jpg
expansions/pics/16400601.jpg
  • 2-up
  • Swipe
  • Onion skin
......@@ -58,7 +58,7 @@ function c10909007.dfilter(c)
return c:IsFaceup() and c:IsSetCard(0x23c) and c:IsType(TYPE_FUSION)
end
function c10909007.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c10909006.dfilter,tp,LOCATION_MZONE,0,1,nil)
return Duel.IsExistingMatchingCard(c10909007.dfilter,tp,LOCATION_MZONE,0,1,nil)
end
function c10909007.spfilter(c,e,tp)
return c:IsFaceup() and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -142,6 +142,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and c:IsCanBeSpecialSummoned(e,0,tp,false,true) then
Duel.SpecialSummon(c,0,tp,tp,false,true,POS_FACEUP)
Debug.Message("轮转的世界,于此终结")
end
end
end
......
......@@ -45,7 +45,7 @@ function cm.burncost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return b1 or b2 end
local op=aux.SelectFromOptions(tp,{b1,aux.Stringid(m,4)},{b2,aux.Stringid(m,5)})
if op==1 then
c:RemoveOverlayCard(c,tp,1,1,REASON_COST)
c:RemoveOverlayCard(tp,1,1,REASON_COST)
elseif op==2 then
Duel.PayLPCost(tp,1000)
end
......@@ -125,7 +125,7 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
end
function cm.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,cm)
Duel.Hint(HINT_CARD,0,m)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(cm.spfilter),tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
if g:GetCount()>0 then
......
......@@ -114,6 +114,7 @@ function c16362052.op2(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_EQUIP_LIMIT)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetValue(c16362052.op2val)
e1:SetLabelObject(ec)
tc:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_EQUIP)
......@@ -124,7 +125,7 @@ function c16362052.op2(e,tp,eg,ep,ev,re,r,rp)
end
end
function c16362052.op2val(e,c)
return e:GetOwner()==c
return e:GetLabelObject()==c
end
function c16362052.lefilter(c)
return c:IsType(TYPE_SPELL) and c:IsPreviousLocation(LOCATION_ONFIELD)
......
......@@ -30,7 +30,7 @@ function s.initial_effect(c)
c:RegisterEffect(e3)
end
function s.thfilter(c)
return c:IsLevelBelow(4) and c:IsSetCard(0x3e8) and c:IsAbleToHand()
return c:IsLevelBelow(3) and c:IsSetCard(0x3e8) and c:IsAbleToHand()
end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -18,32 +18,34 @@ end
function Suyu_bh.changecode(tc)
local sidecode=tc.side_code
tc:SetEntityCode(sidecode)
tc:ReplaceEffect(sidecode,RESET_EVENT+0x7e0000)
local e1=Effect.CreateEffect(tc)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CHANGE_CODE)
e1:SetValue(sidecode)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_CANNOT_DISABLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetReset(RESET_EVENT+0x7e0000)
tc:RegisterEffect(e1)
tc:RegisterEffect(e1,true)
local e2=e1:Clone()
e2:SetCode(EFFECT_ADD_SETCODE)
e2:SetValue(0xa2c2)
tc:RegisterEffect(e2)
tc:RegisterEffect(e2,true)
tc:RegisterFlagEffect(16100000,RESET_EVENT+0x7e0000,0,0)
tc:ReplaceEffect(sidecode,RESET_EVENT+0x7e0000)
Duel.Readjust()
end
function Suyu_bh.changecode2(tc)
local sidecode=tc.code
tc:SetEntityCode(sidecode)
tc:ReplaceEffect(sidecode,RESET_EVENT+0x7e0000)
local e1=Effect.CreateEffect(tc)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CHANGE_CODE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_CANNOT_DISABLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetValue(sidecode)
e1:SetReset(RESET_EVENT+0x7e0000)
tc:RegisterEffect(e1)
tc:RegisterEffect(e1,true)
tc:ResetFlagEffect(16100000)
tc:ReplaceEffect(sidecode,RESET_EVENT+0x7e0000)
Duel.Readjust()
end
function Suyu_bh.c_code(c)
return c.code and c.side_code and c:GetFlagEffect(16100000)==0
......
......@@ -37,16 +37,17 @@ function cm.initial_effect(c)
Duel.RegisterEffect(ge1,0)
end
end
function cm.spcfilter(c,tp,rp)
return c:GetPreviousControler()==tp and c:IsPreviousSetCard(0xa2c2)
and (rp==1-tp and c:IsReason(REASON_EFFECT))
function cm.spcfilter(c,rp)
return c:GetPreviousControler()==c:GetControler() and c:IsPreviousSetCard(0xa2c2)
and (rp==1-c:GetControler() and c:IsReason(REASON_EFFECT))
end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
local g=eg:IsExists(cm.spcfilter,1,nil,tp,rp)
if g then
Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1)
local g=eg:Filter(cm.spcfilter,nil,rp)
for tc in aux.Next(g) do
Duel.RegisterFlagEffect(tc:GetControler(),m,RESET_PHASE+PHASE_END,0,1)
end
end
function cm.spcon(e,c)
if c==nil then return true end
local f=Duel.GetFlagEffect(e:GetHandlerPlayer(),m)
......
......@@ -46,7 +46,7 @@ function cm.indecon(e,tp,eg,ep,ev,re,r,rp)
end
--negate
function cm.discon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsChainDisablable(ev) and not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED)
return Duel.IsChainDisablable(ev) and not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) and re:GetHandler()~=e:GetHandler()
end
function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......@@ -106,20 +106,23 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_CHANGE_POSITION)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
token:RegisterEffect(e1)
token:RegisterEffect(e1,true)
--leave
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EVENT_LEAVE_FIELD)
e3:SetRange(LOCATION_MZONE)
e3:SetLabel(1-tp,500)
e3:SetOperation(cm.leave)
token:RegisterEffect(e3)
token:RegisterEffect(e3,true)
Duel.SpecialSummonComplete()
end
end
end
function cm.leave(e,tp,eg,ep,ev,re,r,rp)
Duel.Damage(tp,500,REASON_EFFECT)
Duel.Hint(HINT_CARD,0,81900013)
local p,dam=e:GetLabel()
Duel.Damage(p,dam,REASON_EFFECT)
end
......
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