Commit 2150e6a5 authored by Tachibana's avatar Tachibana

ybb

parent 2849e834
Pipeline #10966 passed with stages
in 28 minutes and 25 seconds
No preview for this file type
...@@ -76,14 +76,9 @@ function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -76,14 +76,9 @@ function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SelectTarget(tp,cm.filter,tp,LOCATION_MZONE,0,1,1,nil) Duel.SelectTarget(tp,cm.filter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0) Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
if re:GetHandler():IsDestructable() and re:GetHandler():IsRelateToEffect(re) then
Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,1,0,0)
end
end end
function cm.desop(e,tp,eg,ep,ev,re,r,rp) function cm.desop(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then if Duel.NegateActivation(ev) then
Duel.Destroy(eg,REASON_EFFECT)
end
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsLocation(LOCATION_SZONE) then return end if not c:IsLocation(LOCATION_SZONE) then return end
if not c:IsRelateToEffect(e) or c:IsStatus(STATUS_LEAVE_CONFIRMED) then return end if not c:IsRelateToEffect(e) or c:IsStatus(STATUS_LEAVE_CONFIRMED) then return end
...@@ -108,6 +103,7 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -108,6 +103,7 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
else else
c:CancelToGrave(false) c:CancelToGrave(false)
end end
end
end end
function cm.eqlimit(e,c) function cm.eqlimit(e,c)
return c:IsSetCard(0xec2) return c:IsSetCard(0xec2)
......
...@@ -17,7 +17,7 @@ function cm.initial_effect(c) ...@@ -17,7 +17,7 @@ function cm.initial_effect(c)
--desory --desory
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_DESTROY) e2:SetCategory(CATEGORY_DESTROY)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetOperation(cm.desop) e2:SetOperation(cm.desop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
......
...@@ -726,7 +726,7 @@ ...@@ -726,7 +726,7 @@
!setname 0x9344 白之女王 !setname 0x9344 白之女王
!counter 0x34f 时间指示物 !counter 0x34f 时间指示物
#珈百璃 1248959763 335 0xa80-0xa8f #珈艾露 1248959763 335 0xa80-0xa8f
!setname 0x3a80 灵气复苏 !setname 0x3a80 灵气复苏
!setname 0x3a81 金色暗影 !setname 0x3a81 金色暗影
!setname 0x5a81 银光之穹 !setname 0x5a81 银光之穹
......
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