Commit 8950d581 authored by mercury233's avatar mercury233

fix

parent c6f8491b
...@@ -8,6 +8,7 @@ function c39185163.initial_effect(c) ...@@ -8,6 +8,7 @@ function c39185163.initial_effect(c)
e1:SetCode(EVENT_CHAINING) e1:SetCode(EVENT_CHAINING)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCondition(c39185163.disrmcon) e1:SetCondition(c39185163.disrmcon)
e1:SetCost(c39185163.disrmcost)
e1:SetTarget(c39185163.disrmtg) e1:SetTarget(c39185163.disrmtg)
e1:SetOperation(c39185163.disrmop) e1:SetOperation(c39185163.disrmop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -24,6 +25,11 @@ function c39185163.initial_effect(c) ...@@ -24,6 +25,11 @@ function c39185163.initial_effect(c)
e2:SetOperation(c39185163.spop) e2:SetOperation(c39185163.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c39185163.disrmcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:GetFlagEffect(39185163)==0 end
c:RegisterFlagEffect(39185163,RESET_CHAIN,0,1)
end
function c39185163.disrmcon(e,tp,eg,ep,ev,re,r,rp) function c39185163.disrmcon(e,tp,eg,ep,ev,re,r,rp)
local c=re:GetHandler() local c=re:GetHandler()
local race=c:GetRace() local race=c:GetRace()
......
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