Commit 3934fb95 authored by mercury233's avatar mercury233

fix

parent d2a4abb1
......@@ -18,13 +18,19 @@ function c100278021.initial_effect(c)
e1:SetTarget(c100278021.tktg)
e1:SetOperation(c100278021.tkop)
c:RegisterEffect(e1)
--destroy
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(100278021,1))
e2:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
e2:SetCode(EVENT_LEAVE_FIELD_P)
e2:SetOperation(c100278021.desop)
local e2=e1:Clone()
e2:SetCode(EVENT_FLIP_SUMMON_SUCCESS)
c:RegisterEffect(e2)
local e3=e1:Clone()
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e3)
--destroy
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(100278021,1))
e4:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
e4:SetCode(EVENT_LEAVE_FIELD_P)
e4:SetOperation(c100278021.desop)
c:RegisterEffect(e4)
end
function c100278021.tkcon(e,tp,eg,ep,ev,re,r,rp)
if #eg~=1 then return false end
......
--LL-アンサンブルー・ロビン
--Lyrilusc – Ensembl(u)e Robin
--Lyrilusc - Ensemblue Robin
--Script by TheOnePharaoh
function c100425036.initial_effect(c)
c:EnableReviveLimit()
......@@ -16,7 +16,7 @@ function c100425036.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(100425036,0))
e2:SetCategory(CATEGORY_TOHAND)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
......
......@@ -3,21 +3,15 @@
--Scripted by mallu11
function c101105025.initial_effect(c)
--special summon
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
e0:SetCode(EVENT_CHAIN_SOLVED)
e0:SetRange(LOCATION_HAND)
e0:SetCondition(c101105025.regcon)
e0:SetOperation(c101105025.regop)
c:RegisterEffect(e0)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(101105025,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_CUSTOM+101105025)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_DELAY)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,101105025)
e1:SetCondition(c101105025.spcon)
e1:SetTarget(c101105025.sptg)
e1:SetOperation(c101105025.spop)
c:RegisterEffect(e1)
......@@ -42,13 +36,25 @@ function c101105025.initial_effect(c)
e3:SetTarget(c101105025.indtg)
e3:SetOperation(c101105025.indop)
c:RegisterEffect(e3)
if not c101105025.global_check then
c101105025.global_check=true
local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
ge1:SetCode(EVENT_CHAIN_SOLVED)
ge1:SetCondition(c101105025.regcon)
ge1:SetOperation(c101105025.regop)
Duel.RegisterEffect(ge1,0)
end
end
function c101105025.regcon(e,tp,eg,ep,ev,re,r,rp)
local loc,race=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION,CHAININFO_TRIGGERING_RACE)
return rp==tp and re:IsActiveType(TYPE_MONSTER) and loc&LOCATION_MZONE~=0 and race&RACE_FAIRY~=0
return re:IsActiveType(TYPE_MONSTER) and loc&LOCATION_MZONE~=0 and race&RACE_FAIRY~=0
end
function c101105025.regop(e,tp,eg,ep,ev,re,r,rp)
Duel.RaiseSingleEvent(e:GetHandler(),EVENT_CUSTOM+101105025,re,0,0,0,0)
Duel.RaiseEvent(re:GetHandler(),EVENT_CUSTOM+101105025,re,r,rp,ep,ev)
end
function c101105025.spcon(e,tp,eg,ep,ev,re,r,rp)
return rp==tp
end
function c101105025.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
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