Commit a11bb7c6 authored by Nemo Ma's avatar Nemo Ma

fix

parent 652d6e22
......@@ -19,8 +19,8 @@ function c10150073.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e2:SetCode(EVENT_BE_MATERIAL)
e2:SetCondition(c10150073.spcon)
e2:SetTarget(c10150073.spdtg)
e2:SetOperation(c10150073.spdop)
e2:SetTarget(c10150073.sptg)
e2:SetOperation(c10150073.spop)
c:RegisterEffect(e2)
end
function c10150073.spcon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -89,11 +89,14 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local op=e:GetLabel()
local c=e:GetHandler()
local g=Duel.GetMatchingGroup(cm.spfilter,tp,LOCATION_DECK,0,nil,e,tp)
local rflag=false
if op~=1 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and #g>0 then
local tg=g:Select(tp,1,1,nil)
Duel.SpecialSummon(tg,0,tp,tp,false,false,POS_FACEUP)
rflag=true
end
if op~=0 then
if rflag then Duel.BreakEffect() end
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(m,3))
local g=Duel.SelectMatchingCard(tp,nil,tp,LOCATION_DECK,0,1,1,nil)
local tc=g:GetFirst()
......
......@@ -4,20 +4,6 @@ local cm=_G["c"..m]
cm.rssetcode="Cochrot"
function cm.initial_effect(c)
c:EnableReviveLimit()
--bgm
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e0:SetCode(EVENT_SPSUMMON_SUCCESS)
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e0:SetOperation(cm.bgmop)
c:RegisterEffect(e0)
--announce
local e7=Effect.CreateEffect(c)
e7:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e7:SetCode(EVENT_ATTACK_ANNOUNCE)
e7:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e7:SetOperation(cm.anop)
c:RegisterEffect(e7)
--summon success
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
......@@ -54,13 +40,8 @@ function cm.initial_effect(c)
e6:SetOperation(cm.actop)
c:RegisterEffect(e6)
end
function cm.bgmop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_MUSIC,tp,aux.Stringid(m,0))
end
function cm.anop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(24,0,aux.Stringid(m,1))
end
function cm.atkop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_MUSIC,tp,aux.Stringid(m,0))
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
if not e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL) then return end
if #g<=0 then return end
......
......@@ -19,6 +19,7 @@ function cm.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetRange(LOCATION_MZONE)
e2:SetOperation(cm.limitop)
c:RegisterEffect(e2)
local e3=e2:Clone()
......
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