Commit 4d9858b3 authored by Tachibana's avatar Tachibana

1145141919810

parent b1201247
Pipeline #14779 passed with stages
in 27 minutes and 50 seconds
......@@ -83,5 +83,5 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return e:GetLabelObject()==c and se:GetHandler():IsCode(e:GetOwner():GetCode())
return c:IsCode(e:GetLabelObject():GetCode()) and se:GetHandler():IsCode(e:GetOwner():GetCode())
end
......@@ -8,7 +8,7 @@ function cm.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(1)
e1:SetValue(aux.FALSE)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,0))
......
......@@ -72,7 +72,7 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetCounter(COSMIC_BATTLESHIP_SHIELD)==0
return e:GetHandler():GetCounter(TAMA_COSMIC_BATTLESHIP_COUNTER_SHIELD)==0
end
function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end
......
......@@ -41,8 +41,8 @@ function cm.efilter(e,re)
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local ec=e:GetHandler():GetEquipTarget()
if chk==0 then return ec and ec:IsCanRemoveCounter(tp,0x353,1,REASON_COST) end
ec:RemoveCounter(tp,0x353,1,REASON_COST)
if chk==0 then return ec and ec:IsCanRemoveCounter(tp,TAMA_COSMIC_BATTLESHIP_COUNTER_SHIELD,1,REASON_COST) end
ec:RemoveCounter(tp,TAMA_COSMIC_BATTLESHIP_COUNTER_SHIELD,1,REASON_COST)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
local ec=e:GetHandler():GetEquipTarget()
......
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