Commit 2554025f authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent f63e51e1
No preview for this file type
......@@ -48,11 +48,11 @@ function cm.hspcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return ft>-1 and Duel.CheckReleaseGroup(REASON_COST,tp,cm.hspfilter,1,nil,ft,tp)
return ft>-1 and Duel.CheckReleaseGroup(tp,cm.hspfilter,1,nil,ft,tp)
end
function cm.hspop(e,tp,eg,ep,ev,re,r,rp,c)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local g=Duel.SelectReleaseGroup(REASON_COST,tp,cm.hspfilter,1,1,nil,ft,tp)
local g=Duel.SelectReleaseGroup(tp,cm.hspfilter,1,1,nil,ft,tp)
Duel.Release(g,REASON_COST)
end
function cm.thfilter(c)
......
......@@ -52,11 +52,12 @@ function cm.adval(e,c)
return math.min(4500,math.abs(lp1-lp2))
end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.GetLP(1-tp)>=1000 end
if chk==0 then return true end
end
function cm.desop(e,tp,eg,ep,ev,re,r,rp)
local lp=Duel.GetLP(1-tp)
Duel.SetLP(1-tp,lp-1000)
local set=math.max(lp-1000,0)
Duel.SetLP(1-tp,set)
end
function cm.retreg(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -44,5 +44,5 @@ function c16400155.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp)
end
function c16400155.splimit(e,c)
return not c:IsSetCard(0xce5) and c:IsLocation(LOCATION_EXTRA)
return not c:IsSetCard(0xce4) and c:IsLocation(LOCATION_EXTRA)
end
......@@ -33,6 +33,9 @@ function cm.initial_effect(c)
end
cm.VHisc_CNTreasure=true
function cm.matfilter(c)
return VHisc_CNTdb.nck(c) and not c:IsLinkCode(m)
end
--e2
function cm.thfilter(c)
return VHisc_CNTdb.nck(c) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
......
......@@ -36,18 +36,17 @@ end
function s.hdcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,id)>0
end
function s.filter(c,e)
return c:IsFaceup() and c:IsSetCard(0x62c4) and Duel.IsExistingTarget(Card.IsFaceup,e:GetHandlerPlayer(),LOCATION_ONFIELD,LOCATION_ONFIELD,2,{c,e:GetHandler()})
function s.filter(c,tp)
return c:IsFaceup() and c:IsSetCard(0x62c4) and Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,2,c)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
if chk==0 then return Duel.IsExistingTarget(s.filter,tp,LOCATION_ONFIELD,0,1,e:GetHandler(),e) end
if chk==0 then return Duel.IsExistingTarget(s.filter,tp,LOCATION_ONFIELD,0,1,e:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_ONFIELD,0,1,1,e:GetHandler(),e)
local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_ONFIELD,0,1,1,e:GetHandler())
g:AddCard(e:GetHandler())
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local ag=Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,2,2,g)
g:Remove(e:GetHandler())
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g+ag,3,0,0)
end
function s.activate(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -4,7 +4,7 @@ function s.initial_effect(c)
c:EnableReviveLimit()
--
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(s,0))
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
......
......@@ -19,7 +19,7 @@ function s.initial_effect(c)
--disable
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetRange(LOCATION_SZONE)
e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(0,LOCATION_MZONE)
e2:SetTarget(s.eftg)
e2:SetCode(EFFECT_DISABLE)
......
......@@ -32,7 +32,9 @@ function s.initial_effect(c)
e3:SetOperation(s.tkop)
c:RegisterEffect(e3)
local e4=e3:Clone()
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e4:SetCode(EVENT_LEAVE_FIELD)
e4:SetRange(LOCATION_MZONE)
e4:SetCondition(s.tkcon)
c:RegisterEffect(e4)
--Remove
......@@ -147,6 +149,15 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp)
Duel.HintSelection(sg)
Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)
end
local c=e:GetHandler()
if c:IsFaceup() and c:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(e:GetLabel()*1000)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE+RESET_PHASE+PHASE_END)
c:RegisterEffect(e1)
end
end
function s.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
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