Commit 240073a3 authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent edf2cbee
No preview for this file type
...@@ -19,6 +19,7 @@ function cm.initial_effect(c) ...@@ -19,6 +19,7 @@ function cm.initial_effect(c)
e2:SetDescription(aux.Stringid(m,0)) e2:SetDescription(aux.Stringid(m,0))
e2:SetCategory(CATEGORY_POSITION) e2:SetCategory(CATEGORY_POSITION)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_CHAINING) e2:SetCode(EVENT_CHAINING)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
...@@ -51,16 +52,17 @@ end ...@@ -51,16 +52,17 @@ end
-------------------------------------------------------------------- --------------------------------------------------------------------
function cm.tscon(e,tp,eg,ep,ev,re,r,rp) function cm.tscon(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and re:IsActiveType(TYPE_MONSTER) local rc=re:GetHandler()
return rp==1-tp and re:IsActiveType(TYPE_MONSTER) and rc:IsRelateToEffect(re) and rc:IsOnField() and rc:IsFaceup() and rc:IsCanTurnSet()
end end
function cm.tstg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.tstg(e,tp,eg,ep,ev,re,r,rp,chk)
local rc=re:GetHandler() local rc=re:GetHandler()
if chk==0 then return rc:IsRelateToEffect(re) and rc:IsFaceup() and rc:IsCanTurnSet() end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_POSITION,rc,1,0,0) Duel.SetOperationInfo(0,CATEGORY_POSITION,rc,1,0,0)
end end
function cm.tsop(e,tp,eg,ep,ev,re,r,rp) function cm.tsop(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler() local rc=re:GetHandler()
if rc:IsRelateToEffect(re) and rc:IsFaceup() then if rc:IsFaceup() and rc:IsLocation(LOCATION_MZONE) then
Duel.ChangePosition(rc,POS_FACEDOWN_DEFENSE) Duel.ChangePosition(rc,POS_FACEDOWN_DEFENSE)
end end
end end
......
...@@ -20,7 +20,8 @@ function cm.initial_effect(c) ...@@ -20,7 +20,8 @@ function cm.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(m,1)) e3:SetDescription(aux.Stringid(m,1))
e3:SetType(EFFECT_TYPE_IGNITION) e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_FREE_CHAIN)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetRange(LOCATION_SZONE) e3:SetRange(LOCATION_SZONE)
e3:SetCountLimit(1) e3:SetCountLimit(1)
......
...@@ -56,6 +56,7 @@ function c67200750.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -56,6 +56,7 @@ function c67200750.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g1,2,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g1,2,0,0)
end end
function c67200750.desop(e,tp,eg,ep,ev,re,r,rp) function c67200750.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
if Duel.Destroy(g,REASON_EFFECT)~=0 then if Duel.Destroy(g,REASON_EFFECT)~=0 then
local e5=Effect.CreateEffect(c) local e5=Effect.CreateEffect(c)
......
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