Commit 35117251 authored by Tachibana's avatar Tachibana

sign out

parent 263df68f
No preview for this file type
...@@ -20,7 +20,7 @@ function cm.initial_effect(c) ...@@ -20,7 +20,7 @@ function cm.initial_effect(c)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,m) e1:SetCountLimit(1,m+100)
e1:SetTarget(cm.target) e1:SetTarget(cm.target)
e1:SetOperation(cm.activate) e1:SetOperation(cm.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -47,7 +47,7 @@ function cm.indcon(e) ...@@ -47,7 +47,7 @@ function cm.indcon(e)
return e:GetHandler():GetEquipCount()>0 return e:GetHandler():GetEquipCount()>0
end end
function cm.copyfilter(c) function cm.copyfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsDefenseAbove(0) return c:IsType(TYPE_MONSTER) and c:IsDefenseAbove(0) and c:IsSetCard(0xce0)
end end
function cm.copytg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.copytg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -1207,6 +1207,7 @@ end ...@@ -1207,6 +1207,7 @@ end
function C9.Komachi_Sp_Con(e,c) function C9.Komachi_Sp_Con(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
if Duel.GetFieldGroupCount(e:GetHandlerPlayer(),LOCATION_EXTRA,0)~=0 then return false end
if c:IsLocation(LOCATION_GRAVE) and not Duel.IsPlayerAffectedByEffect(tp,20100514) then return false end if c:IsLocation(LOCATION_GRAVE) and not Duel.IsPlayerAffectedByEffect(tp,20100514) then return false end
local dec=Duel.IsExistingMatchingCard(Card.IsCode,tp,0,LOCATION_MZONE,1,nil,20100500) local dec=Duel.IsExistingMatchingCard(Card.IsCode,tp,0,LOCATION_MZONE,1,nil,20100500)
if dec then if dec then
......
...@@ -39,7 +39,7 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,7 +39,7 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToBattle() then return false end if not c:IsRelateToBattle() then return false end
local bt=c:GetBattleTarget() local bt=c:GetBattleTarget()
if not bt then return false or bt:IsCode(20100500) end if not bt or bt:IsCode(20100500) then return false end
return bt:IsRelateToBattle() and not c:IsStatus(STATUS_BATTLE_DESTROYED) return bt:IsRelateToBattle() and not c:IsStatus(STATUS_BATTLE_DESTROYED)
end end
......
...@@ -18,7 +18,7 @@ function cm.initial_effect(c) ...@@ -18,7 +18,7 @@ function cm.initial_effect(c)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCategory(CATEGORY_DESTROY+CATEGORY_DAMAGE) e2:SetCategory(CATEGORY_DESTROY+CATEGORY_DAMAGE)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetCountLimit(1,m) e2:SetCountLimit(1,m+1)
e2:SetTarget(cm.tg) e2:SetTarget(cm.tg)
e2:SetOperation(cm.op) e2:SetOperation(cm.op)
c:RegisterEffect(e2) c:RegisterEffect(e2)
...@@ -32,7 +32,7 @@ end ...@@ -32,7 +32,7 @@ end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsCode(20100500) and chkc:IsControler(1-tp) and chkc:IsCanBeEffectTarget(e) and chkc:IsLocation(LOCATION_MZONE) end if chkc then return chkc:IsCode(20100500) and chkc:IsControler(1-tp) and chkc:IsCanBeEffectTarget(e) and chkc:IsLocation(LOCATION_MZONE) end
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsCode,tp,0,LOCATION_MZONE,1,nil,20100500) end if chk==0 then return Duel.IsExistingTarget(Card.IsCode,tp,0,LOCATION_MZONE,1,nil,20100500) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
local sh=Duel.SelectTarget(tp,Card.IsCode,tp,0,LOCATION_MZONE,1,1,nil,20100500) local sh=Duel.SelectTarget(tp,Card.IsCode,tp,0,LOCATION_MZONE,1,1,nil,20100500)
local x,y=C9.GetCoordinate(sh:GetFirst(),tp) local x,y=C9.GetCoordinate(sh:GetFirst(),tp)
......
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