Commit 7f5fdfd4 authored by Tachibana's avatar Tachibana

ybb

parent cfd7bf79
No preview for this file type
......@@ -23,7 +23,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_DESTROY)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e3:SetCode(EVENT_TO_GRAVE)
e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetRange(LOCATION_GRAVE)
......@@ -54,7 +54,7 @@ function cm.conf2(c,tp)
return bit.band(c:GetType(),0x82)==0x82 and c:IsControler(tp)
end
function cm.con2(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(cm.conf2,1,nil,tp) and not e:GetHandler():IsStatus(STATUS_CHAINING)
return eg:IsExists(cm.conf2,1,nil,tp)
end
function cm.tgf2(c)
return bit.band(c:GetType(),0x82)==0x82 and c:IsAbleToHand()
......@@ -93,7 +93,7 @@ function cm.con3(e,tp,eg,ep,ev,re,r,rp)
end
function cm.tg3(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(nil,tp,0,LOCATION_ONFIELD,nil)
if chk==0 then return g:GetCount()>0 end
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,1-tp,LOCATION_ONFIELD)
end
function cm.op3(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -44,9 +44,8 @@ function cm.initial_effect(c)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1,m+12)
e3:SetCondition(function(e,c)
if c==nil then return true end
e3:SetCountLimit(1,m+100)
e3:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_MZONE,0,1,e:GetHandler(),0x388)
end)
e3:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
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