Commit fddce544 authored by Tachibana's avatar Tachibana

ybb

parent 0cb55ce3
......@@ -17,6 +17,7 @@ function cm.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_ATTACK_ANNOUNCE)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCondition(cm.atkcon)
e2:SetTarget(cm.atktg)
e2:SetOperation(cm.atkop)
......@@ -53,7 +54,7 @@ function cm.atkop(e,tp,eg,ep,ev,re,r,rp)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetValue(tc:GetAttack())
e2:SetValue(tc:GetAttack()/2)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
c:RegisterEffect(e2)
end
......
......@@ -13,6 +13,7 @@ function cm.initial_effect(c)
end
cm[0]=0
function cm.inmop(e,tp,eg,ep,ev,re,r,rp)
if rp==tp then return end
local cg=Duel.GetMatchingGroup(nil,tp,LOCATION_GRAVE,0,nil)
local g,id=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS,CHAININFO_CHAIN_ID)
if #cg>0 and not cg:IsExists(function(c)return not c:IsSetCard(0x3531)end,1,nil) and id~=cm[0] and ((not g) or (not g:IsExists(function(c,tp)return c:IsControler(tp) and c:IsOnField()end,1,nil,tp))) and Duel.IsPlayerCanDiscardDeck(tp,1) then
......
......@@ -82,7 +82,7 @@ function c64832008.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
if e:GetLabel()~=100 then return false end
e:SetLabel(0)
return ft>-1 and e:GetHandler():IsDiscardable(REASON_COST) and Duel.IsExistingMatchingCard(c64832008.costfil,tp,LOCATION_HAND,0,1,e:GetHandler()) and Duel.IsPlayerCanDraw(tp,2)
return e:GetHandler():IsDiscardable(REASON_COST) and Duel.IsExistingMatchingCard(c64832008.costfil,tp,LOCATION_HAND,0,1,e:GetHandler()) and Duel.IsPlayerCanDraw(tp,2)
end
local g=Duel.SelectMatchingCard(tp,c64832008.costfil,tp,LOCATION_HAND,0,1,1,e:GetHandler())
if g:GetFirst():IsCode(65010094,65010095) then Duel.SetChainLimit(c64832008.chlimit) 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