Commit d26e1bc1 authored by Tachibana's avatar Tachibana

ybb

parent 9d0d448e
Pipeline #10672 passed with stage
in 24 minutes and 3 seconds
......@@ -90,7 +90,4 @@ function c10071011.atkop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(500)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e1,true)
local e2=e1:Clone()
e2:SetCode(EFFECT_UPDATE_DEFENSE)
rc:RegisterEffect(e2,true)
end
\ No newline at end of file
......@@ -104,10 +104,6 @@ function cm.atkop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(300)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_UPDATE_DEFENSE)
e2:SetValue(300)
c:RegisterEffect(e2)
end
end
--actlimit
......
......@@ -39,7 +39,7 @@ function cm.splimit(e,c,tp,sumtp,sumpos)
end
function cm.discost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(m,tp,ACTIVITY_SPSUMMON)==0 and
Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_GRAVE+LOCATION_ONFIELD,0,1,nil)
Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_GRAVE+LOCATION_ONFIELD,0,1,nil,tp)
end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
......
......@@ -49,10 +49,11 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
function cm.discon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS):IsContains(c)
and not c:IsStatus(STATUS_BATTLE_DESTROYED) and ep==1-tp
local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return not c:IsStatus(STATUS_BATTLE_DESTROYED) and ep==1-tp
and Duel.IsChainNegatable(ev)
and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET)
and tg and tg:IsContains(c)
end
function cm.discost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) 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