Commit 16fdc913 authored by mercury233's avatar mercury233

fix

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