Commit ff2c6048 authored by 聖園ミカ's avatar 聖園ミカ 🐟

vme50

parent 542bc70b
No preview for this file type
--奥尔加团长
function c89600301.initial_effect(c)
function c98689601.initial_effect(c)
aux.AddXyzProcedure(c,nil,8,2)
c:EnableReviveLimit()
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(89600301,0))
e1:SetDescription(aux.Stringid(98689601,0))
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(c89600301.cost)
e1:SetTarget(c89600301.target)
e1:SetOperation(c89600301.operation)
e1:SetCost(c98689601.cost)
e1:SetTarget(c98689601.target)
e1:SetOperation(c98689601.operation)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
......@@ -17,33 +17,33 @@ function c89600301.initial_effect(c)
e2:SetCode(EFFECT_FLAG_SET_AVAILABLE)
e2:SetTargetRange(0,LOCATION_MZONE)
e2:SetCode(EFFECT_CANNOT_SELECT_BATTLE_TARGET)
e2:SetValue(c89600301.atlimit)
e2:SetValue(c98689601.atlimit)
c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(89600301,1))
e3:SetDescription(aux.Stringid(98689601,1))
e3:SetCategory(CATEGORY_TOHAND)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetCode(EVENT_DESTROYED)
e3:SetCondition(c89600301.thcon)
e3:SetTarget(c89600301.thtg)
e3:SetOperation(c89600301.thop)
e3:SetCondition(c98689601.thcon)
e3:SetTarget(c98689601.thtg)
e3:SetOperation(c98689601.thop)
c:RegisterEffect(e3)
end
function c89600301.cost(e,tp,eg,ep,ev,re,r,rp,chk)
function c98689601.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end
function c89600301.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(e:GetHandlerPlayer(),89600301)==0 end
function c98689601.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(e:GetHandlerPlayer(),98689601)==0 end
end
function c89600301.operation(e,tp,eg,ep,ev,re,r,rp)
function c98689601.operation(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetTarget(c89600301.tgfilter)
e1:SetTarget(c98689601.tgfilter)
e1:SetValue(1)
if Duel.GetTurnPlayer()==tp then
e1:SetReset(RESET_PHASE+PHASE_END+RESET_SELF_TURN,2)
......@@ -52,31 +52,31 @@ function c89600301.operation(e,tp,eg,ep,ev,re,r,rp)
end
Duel.RegisterEffect(e1,tp)
if Duel.GetTurnPlayer()==tp then
Duel.RegisterFlagEffect(e:GetHandlerPlayer(),89600301,RESET_PHASE+PHASE_END+RESET_SELF_TURN,0,2)
Duel.RegisterFlagEffect(e:GetHandlerPlayer(),98689601,RESET_PHASE+PHASE_END+RESET_SELF_TURN,0,2)
else
Duel.RegisterFlagEffect(e:GetHandlerPlayer(),89600301,RESET_PHASE+PHASE_END+RESET_SELF_TURN,0,1)
Duel.RegisterFlagEffect(e:GetHandlerPlayer(),98689601,RESET_PHASE+PHASE_END+RESET_SELF_TURN,0,1)
end
end
function c89600301.tgfilter(e,c)
function c98689601.tgfilter(e,c)
return c~=e:GetHandler()
end
function c89600301.atlimit(e,c)
return not c:IsCode(89600301)
function c98689601.atlimit(e,c)
return not c:IsCode(98689601)
end
function c89600301.thcon(e,tp,eg,ep,ev,re,r,rp)
function c98689601.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:GetPreviousControler()==tp
and ((c:IsReason(REASON_EFFECT) and rp==1-tp) or (c:IsReason(REASON_BATTLE) and Duel.GetAttacker():IsControler(1-tp)))
end
function c89600301.thfilter(c)
function c98689601.thfilter(c)
return c:IsAbleToHand() and c:IsType(TYPE_MONSTER)
end
function c89600301.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c89600301.thfilter,tp,LOCATION_GRAVE,0,1,nil) end
function c98689601.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c98689601.thfilter,tp,LOCATION_GRAVE,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE)
end
function c89600301.thop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(c89600301.thfilter),tp,LOCATION_GRAVE,0,nil)
function c98689601.thop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(c98689601.thfilter),tp,LOCATION_GRAVE,0,nil)
if g:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local sg=g:Select(tp,1,1,nil)
......
......@@ -1278,8 +1278,6 @@
#AddCodeList(89451031) S.W.惡狼 霜月雪成卡名记述
!counter 0x70a 囚馆指示物
#芙兰朵露 978818523 896
#bywdsm 1079774209 923 0xa40-0xa4f
!setname 0x3a41 幻梦境的碎片
!setname 0x3a44 延迟?!
......@@ -1327,3 +1325,4 @@
##◇小K 1318052139 669
##◇落 2403265619 707-708
##◇水叶 865
##芙兰朵露 978818523 896
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