Commit a6663f50 authored by Tachibana's avatar Tachibana

eme

parent 2c9a8e94
No preview for this file type
......@@ -123,10 +123,9 @@ function cm.filter1(c,e,tp)
end
function cm.operation1(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
local tc=Duel.GetFirstMatchingCard(cm.filter1,tp,LOCATION_DECK,0,nil,e,tp)
if tc then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE)
Duel.ConfirmCards(1-tp,tc)
local g=Duel.SelectMatchingCard(tp,cm.filter1,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if #g>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE)
end
end
function cm.settg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -76,6 +76,7 @@ function cm.wteffect(e,tp,eg,ep,ev,re,r,rp,c)
if cost then cost(te,tep,eg,ep,ev,re,r,rp,1) end
if target then target(te,tep,eg,ep,ev,re,r,rp,1) end
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
if not g then return end
local tg=g:GetFirst()
while tg do
tg:CreateEffectRelation(te)
......
......@@ -4,7 +4,7 @@ c85401420.dfc_back_side=85401440
---日月面变化公式
function c85401420.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY+EFFECT_FLAG_CANNOT_INACTIVATE)
e1:SetCondition(c85401420.con)
......
......@@ -4,7 +4,7 @@ c85401460.dfc_back_side=85401480
---日月面变化公式
function c85401460.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY+EFFECT_FLAG_CANNOT_INACTIVATE)
e1:SetCondition(c85401460.con)
......
......@@ -24,7 +24,7 @@ function c85401630.initial_effect(c)
c:RegisterEffect(e3)
------提升守备力
local e4=Effect.CreateEffect(c)
e4:SetCategory(CATEGORY_POSITION+CATEGORY_ATKCHANGE)
e4:SetCategory(CATEGORY_POSITION+CATEGORY_DEFCHANGE)
e4:SetType(EFFECT_TYPE_QUICK_O)
e4:SetCode(EVENT_FREE_CHAIN)
e4:SetRange(LOCATION_SZONE)
......@@ -35,7 +35,7 @@ function c85401630.initial_effect(c)
e4:SetTarget(c85401630.tg)
e4:SetOperation(c85401630.op)
c:RegisterEffect(e4)
------降低攻击力,改变表示形式
------降低守备力,改变表示形式
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_EQUIP)
e5:SetCode(EFFECT_DESTROY_REPLACE)
......@@ -112,7 +112,6 @@ function c85401630.op(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangePosition(tc,POS_FACEUP_DEFENSE,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK)
end
end
function c85401630.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local tc=c:GetEquipTarget()
......
......@@ -39,6 +39,7 @@ function c85402020.initial_effect(c)
c:RegisterEffect(e5)
------占卜找装备
local e6=Effect.CreateEffect(c)
e6:SetCategory(HINTMSG_SPSUMMON)
e6:SetType(EFFECT_TYPE_QUICK_O)
e6:SetCode(EVENT_FREE_CHAIN)
e6:SetProperty(EFFECT_FLAG_CARD_TARGET)
......@@ -48,6 +49,7 @@ function c85402020.initial_effect(c)
e6:SetTarget(c85402020.cktg)
e6:SetOperation(c85402020.ckop)
c:RegisterEffect(e6)
------丢手特招
end
function c85402020.fl(e,c)
return c:IsCode(85402000)
......@@ -113,6 +115,10 @@ function c85402020.ckop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
Duel.SpecialSummon(g,0,tp,tp,true,false,POS_FACEUP)
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end
end
\ No newline at end of file
end
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