Commit d5708cf8 authored by VanillaSalt's avatar VanillaSalt

fix

parent fba46975
...@@ -40,7 +40,7 @@ function c7165085.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,7 +40,7 @@ function c7165085.activate(e,tp,eg,ep,ev,re,r,rp)
local cost=te:GetCost() local cost=te:GetCost()
local target=te:GetTarget() local target=te:GetTarget()
local operation=te:GetOperation() local operation=te:GetOperation()
if te:GetCode()==EVENT_FREE_CHAIN and te:IsActivatable(tp) if te:GetCode()==EVENT_FREE_CHAIN and te:IsActivatable(tep)
and (not condition or condition(te,tep,eg,ep,ev,re,r,rp)) and (not condition or condition(te,tep,eg,ep,ev,re,r,rp))
and (not cost or cost(te,tep,eg,ep,ev,re,r,rp,0)) and (not cost or cost(te,tep,eg,ep,ev,re,r,rp,0))
and (not target or target(te,tep,eg,ep,ev,re,r,rp,0)) then and (not target or target(te,tep,eg,ep,ev,re,r,rp,0)) then
...@@ -60,6 +60,7 @@ function c7165085.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,6 +60,7 @@ function c7165085.activate(e,tp,eg,ep,ev,re,r,rp)
tg:CreateEffectRelation(te) tg:CreateEffectRelation(te)
tg=g:GetNext() tg=g:GetNext()
end end
tc:SetStatus(STATUS_ACTIVATED,true)
if operation then operation(te,tep,eg,ep,ev,re,r,rp) end if operation then operation(te,tep,eg,ep,ev,re,r,rp) end
tc:ReleaseEffectRelation(te) tc:ReleaseEffectRelation(te)
tg=g:GetFirst() tg=g:GetFirst()
......
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