Commit bdade74a authored by POLYMER's avatar POLYMER

fix

parent 5d67717f
No preview for this file type
......@@ -31,6 +31,7 @@ function c10111180.initial_effect(c)
e4:SetCategory(CATEGORY_DAMAGE+CATEGORY_TOHAND+CATEGORY_SEARCH)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetCode(EVENT_SUMMON_SUCCESS)
e4:SetProperty(EFFECT_FLAG_DELAY)
e4:SetTarget(c10111180.combtg)
e4:SetOperation(c10111180.combop)
c:RegisterEffect(e4)
......
......@@ -49,11 +49,15 @@ function c10111181.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function c10111181.operation(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT)
Duel.BreakEffect()
Duel.Recover(tp,re:GetHandler():GetBaseAttack(),REASON_EFFECT)
end
local rc=re:GetHandler()
if Duel.NegateActivation(ev) and rc:IsRelateToEffect(re) then
if Duel.Destroy(rc,REASON_EFFECT)>0 then -- 检测破坏是否成功
local atk=rc:GetBaseAttack()
if atk>0 then -- 确保攻击力为正数
Duel.Recover(tp,atk,REASON_EFFECT)
end
end
end
end
function c10111181.spcon(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and e:GetHandler():IsPreviousControler(tp)
......
......@@ -10,6 +10,7 @@ function s.initial_effect(c)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(2,id)
e1:SetCondition(s.condition)
e1:SetTarget(s.target)
e1:SetOperation(s.operation)
c:RegisterEffect(e1)
......@@ -17,6 +18,9 @@ end
function s.lcheck(g)
return g:IsExists(Card.IsLinkSetCard,1,nil,0xd2)
end
function s.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
if chkc then return chkc:IsOnField() and chkc:IsFaceup() end
......
......@@ -22,7 +22,7 @@ function c67201135.initial_effect(c)
e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_CUSTOM+67201135)
e3:SetRange(LOCATION_HAND)
--e3:SetCountLimit(1,67201135)
e3:SetCountLimit(1,EFFECT_COUNT_CODE_CHAIN)
e3:SetCondition(c67201135.opcon)
e3:SetTarget(c67201135.optg)
e3:SetOperation(c67201135.opop)
......
......@@ -54,7 +54,7 @@ function s.mattg(e,c)
end
function s.matval(e,lc,mg,c,tp)
if not (lc:IsRace(0x10) and e:GetHandlerPlayer()==tp) then return false,nil end
return true,true
return true,not mg or not mg:IsExists(Card.IsControler,1,nil,1-tp)
end
function s.filter1(c)
return _G["c"..c:GetCode()] and _G["c"..c:GetCode()].Findesiecle and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
......
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