Commit 028c7474 authored by POLYMER's avatar POLYMER

fix

parent df736134
No preview for this file type
...@@ -77,12 +77,12 @@ function c117837139.initial_effect(c) ...@@ -77,12 +77,12 @@ function c117837139.initial_effect(c)
e12:SetType(EFFECT_TYPE_FIELD) e12:SetType(EFFECT_TYPE_FIELD)
e12:SetRange(LOCATION_MZONE) e12:SetRange(LOCATION_MZONE)
e12:SetTargetRange(LOCATION_MZONE,0) e12:SetTargetRange(LOCATION_MZONE,0)
e12:SetCode(EFFECT_CANNOT_SELECT_BATTLE_TARGET) e12:SetCode(EFFECT_MUST_ATTACK)
e12:SetCondition(c117837139.atkcon) e12:SetCondition(c117837139.atkcon)
e12:SetValue(c117837139.atlimit)
c:RegisterEffect(e12) c:RegisterEffect(e12)
local e13=e12:Clone() local e13=e12:Clone()
e13:SetCode(EFFECT_MUST_ATTACK) e12:SetCode(EFFECT_MUST_ATTACK_MONSTER)
e12:SetValue(c117837139.atlimit)
c:RegisterEffect(e13) c:RegisterEffect(e13)
--switch control --switch control
local e14=Effect.CreateEffect(c) local e14=Effect.CreateEffect(c)
...@@ -103,7 +103,7 @@ end ...@@ -103,7 +103,7 @@ end
function c117837139.sumcon(e,c) function c117837139.sumcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
return not Duel.IsPlayerAffectedByEffect(tp,59822133) and Duel.IsPlayerCanSpecialSummonCount(tp,2) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetLocationCountFromEx(1-tp,tp,nil,c)>0 and Duel.IsExistingMatchingCard(c117837139.sumfilter,tp,LOCATION_HAND,0,1,nil,e,tp) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_LINK,tp,true,false) return not Duel.IsPlayerAffectedByEffect(tp,59822133) and Duel.IsPlayerCanSpecialSummonCount(tp,2) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetLocationCountFromEx(1-tp,tp,nil,c)>0 and Duel.IsExistingMatchingCard(c117837139.sumfilter,tp,LOCATION_HAND,0,1,nil,e,tp) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_LINK,tp,true,false,POS_FACEUP,1-tp)
end end
function c117837139.sumop(e,tp,eg,ep,ev,re,r,rp,c) function c117837139.sumop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
...@@ -120,11 +120,11 @@ end ...@@ -120,11 +120,11 @@ end
function c117837139.cfilter(c) function c117837139.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x1a5) return c:IsFaceup() and c:IsSetCard(0x1a5)
end end
function c117837139.atkcon(e,tp,eg,ep,ev,re,r,rp) function c117837139.atkcon(e)
return Duel.IsExistingMatchingCard(c117837139.cfilter,tp,0,LOCATION_MZONE,1,nil) return Duel.IsExistingMatchingCard(c117837139.cfilter,e:GetHandlerPlayer(),0,LOCATION_MZONE,1,nil)
end end
function c117837139.atlimit(e,c) function c117837139.atlimit(e,c)
return not (c:IsFaceup() and c:IsSetCard(0x1a5)) return c:IsFaceup() and c:IsSetCard(0x1a5)
end end
function c117837139.spfilter(c,e,tp) function c117837139.spfilter(c,e,tp)
......
--隐秘的拉比林斯 --隐秘的白之
local cm,m,o=GetID() local cm,m,o=GetID()
function cm.initial_effect(c) function cm.initial_effect(c)
local e2=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD) e3:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e3:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e2:SetTargetRange(LOCATION_ONFIELD,0) e3:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e2:SetTarget(cm.indtg) e3:SetTargetRange(LOCATION_ONFIELD,0)
e2:SetValue(1) e3:SetRange(LOCATION_MZONE)
c:RegisterEffect(e2) e3:SetTarget(cm.indtg)
e3:SetValue(1)
c:RegisterEffect(e3)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
......
...@@ -228,8 +228,8 @@ function cm.lvop(e,tp,eg,ep,ev,re,r,rp) ...@@ -228,8 +228,8 @@ function cm.lvop(e,tp,eg,ep,ev,re,r,rp)
local rg=Duel.GetMatchingGroup(cm.rmfil,tp,LOCATION_EXTRA,0,nil,xlv):Select(tp,1,1,nil) local rg=Duel.GetMatchingGroup(cm.rmfil,tp,LOCATION_EXTRA,0,nil,xlv):Select(tp,1,1,nil)
if rg and Duel.Remove(rg,POS_FACEUP,REASON_EFFECT) then if rg and Duel.Remove(rg,POS_FACEUP,REASON_EFFECT) then
local rmvg=Duel.GetOperatedGroup() local rmvg=Duel.GetOperatedGroup()
rmvg:KeepAlive()
e:SetLabelObject(rmvg) e:SetLabelObject(rmvg)
rmvg:KeepAlive()
local code=rmvg:GetFirst():GetCode() local code=rmvg:GetFirst():GetCode()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -36,10 +36,10 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,10 +36,10 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
local e12=e1:Clone() local e12=e1:Clone()
e12:SetCode(EVENT_SUMMON_SUCCESS) e12:SetCode(EVENT_SUMMON_SUCCESS)
Duel.RegisterEffect(e12,tp) c:RegisterEffect(e12)
local e13=e1:Clone() local e13=e1:Clone()
e13:SetCode(EVENT_FLIP_SUMMON_SUCCESS) e13:SetCode(EVENT_FLIP_SUMMON_SUCCESS)
Duel.RegisterEffect(e13,tp) c:RegisterEffect(e13)
--sp_summon effect --sp_summon effect
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
...@@ -51,10 +51,10 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,10 +51,10 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
local e22=e2:Clone() local e22=e2:Clone()
e22:SetCode(EVENT_SUMMON_SUCCESS) e22:SetCode(EVENT_SUMMON_SUCCESS)
Duel.RegisterEffect(e22,tp) c:RegisterEffect(e22)
local e23=e2:Clone() local e23=e2:Clone()
e23:SetCode(EVENT_FLIP_SUMMON_SUCCESS) e23:SetCode(EVENT_FLIP_SUMMON_SUCCESS)
Duel.RegisterEffect(e23,tp) c:RegisterEffect(e23)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD) e3:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
e3:SetCode(EVENT_CHAIN_SOLVED) e3:SetCode(EVENT_CHAIN_SOLVED)
...@@ -70,7 +70,8 @@ function s.filter(c,sp,code) ...@@ -70,7 +70,8 @@ function s.filter(c,sp,code)
end end
function s.tgcon1(e,tp,eg,ep,ev,re,r,rp) function s.tgcon1(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.filter,1,nil,1-tp,e:GetLabel()) return eg:IsExists(s.filter,1,nil,1-tp,e:GetLabel())
and (not re:IsHasType(EFFECT_TYPE_ACTIONS) or re:IsHasType(EFFECT_TYPE_CONTINUOUS)) and not Duel.IsChainSolving()
--and (not re:IsHasType(EFFECT_TYPE_ACTIONS) or re:IsHasType(EFFECT_TYPE_CONTINUOUS))
end end
function s.tgop1(e,tp,eg,ep,ev,re,r,rp) function s.tgop1(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,id) Duel.Hint(HINT_CARD,0,id)
...@@ -83,7 +84,8 @@ function s.tgop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -83,7 +84,8 @@ function s.tgop1(e,tp,eg,ep,ev,re,r,rp)
end end
function s.regcon(e,tp,eg,ep,ev,re,r,rp) function s.regcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.filter,1,nil,1-tp,e:GetLabel()) return eg:IsExists(s.filter,1,nil,1-tp,e:GetLabel())
and re:IsHasType(EFFECT_TYPE_ACTIONS) and not re:IsHasType(EFFECT_TYPE_CONTINUOUS) and Duel.IsChainSolving()
--and re:IsHasType(EFFECT_TYPE_ACTIONS) and not re:IsHasType(EFFECT_TYPE_CONTINUOUS)
end end
function s.regop(e,tp,eg,ep,ev,re,r,rp) function s.regop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterFlagEffect(tp,id,RESET_CHAIN,0,1) Duel.RegisterFlagEffect(tp,id,RESET_CHAIN,0,1)
......
...@@ -1119,6 +1119,7 @@ ...@@ -1119,6 +1119,7 @@
#会变的不幸rua 519 #会变的不幸rua 519
!setname 0x510 《遥远·传说》 !setname 0x510 《遥远·传说》
!setname 0x511 《不详·征兆》
#sch 258 0x210-0x21f #sch 258 0x210-0x21f
!setname 0x211 舰娘 !setname 0x211 舰娘
......
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