Commit 16fdc913 authored by mercury233's avatar mercury233

fix

parent 288e4929
...@@ -30,6 +30,7 @@ function c100277001.initial_effect(c) ...@@ -30,6 +30,7 @@ function c100277001.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
-- --
if not c100277001.global_check then if not c100277001.global_check then
c100277001.global_check=true
_GetFusionMaterial=Duel.GetFusionMaterial _GetFusionMaterial=Duel.GetFusionMaterial
function Duel.GetFusionMaterial(tp) function Duel.GetFusionMaterial(tp)
local g=_GetFusionMaterial(tp) local g=_GetFusionMaterial(tp)
......
...@@ -7,6 +7,7 @@ function c100416013.initial_effect(c) ...@@ -7,6 +7,7 @@ function c100416013.initial_effect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN+CATEGORY_GRAVE_SPSUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN+CATEGORY_GRAVE_SPSUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,100416013+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c100416013.target) e1:SetTarget(c100416013.target)
e1:SetOperation(c100416013.operation) e1:SetOperation(c100416013.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
......
--シドレミコード・ビューティア --シドレミコード・ビューティア
--scripted by Xylen5967 --scripted by Xylen5967 & mercury233
function c100416020.initial_effect(c) function c100416020.initial_effect(c)
--pendulum summon --pendulum summon
aux.EnablePendulumAttribute(c) aux.EnablePendulumAttribute(c)
...@@ -36,6 +36,7 @@ function c100416020.initial_effect(c) ...@@ -36,6 +36,7 @@ function c100416020.initial_effect(c)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e4:SetCode(EVENT_BATTLE_START) e4:SetCode(EVENT_BATTLE_START)
e4:SetCountLimit(1) e4:SetCountLimit(1)
e4:SetCondition(c100416020.descon)
e4:SetTarget(c100416020.destg) e4:SetTarget(c100416020.destg)
e4:SetOperation(c100416020.desop) e4:SetOperation(c100416020.desop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
...@@ -106,7 +107,7 @@ function c100416020.rmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -106,7 +107,7 @@ function c100416020.rmop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1,true) tc:RegisterEffect(e1,true)
end end
end end
function c100416020.descon(e,tp,eg,ep,ev,re,r,rp,chk) function c100416020.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local p1=Duel.GetFieldCard(tp,LOCATION_PZONE,0) local p1=Duel.GetFieldCard(tp,LOCATION_PZONE,0)
local p2=Duel.GetFieldCard(tp,LOCATION_PZONE,1) local p2=Duel.GetFieldCard(tp,LOCATION_PZONE,1)
...@@ -116,8 +117,7 @@ function c100416020.descon(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -116,8 +117,7 @@ function c100416020.descon(e,tp,eg,ep,ev,re,r,rp,chk)
if p2 then sp2=p2:GetRightScale() end if p2 then sp2=p2:GetRightScale() end
local scale=math.min(sp1,sp2) local scale=math.min(sp1,sp2)
local bc=c:GetBattleTarget() local bc=c:GetBattleTarget()
if chk==0 then return scale<255 and bc and bc:IsFaceup() and bc:IsAttackAbove(scale*300) end return scale<255 and bc and bc:IsFaceup() and bc:IsAttackAbove(scale*300)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,bc,1,0,0)
end end
function c100416020.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c100416020.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -66,7 +66,7 @@ function c100416024.scop(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,7 +66,7 @@ function c100416024.scop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_LSCALE) e1:SetCode(EFFECT_UPDATE_LSCALE)
e1:SetValue(sc:GetLevel()) e1:SetValue(sc:GetLevel())
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
sc:RegisterEffect(e1) sc:RegisterEffect(e1)
local e2=e1:Clone() local e2=e1:Clone()
e2:SetCode(EFFECT_UPDATE_RSCALE) e2:SetCode(EFFECT_UPDATE_RSCALE)
......
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