Commit 71e0adeb authored by gggg's avatar gggg

eratta

parent e689e1d1
No preview for this file type
...@@ -31,7 +31,7 @@ function cm.initial_effect(c) ...@@ -31,7 +31,7 @@ function cm.initial_effect(c)
e3:SetType(EFFECT_TYPE_QUICK_F) e3:SetType(EFFECT_TYPE_QUICK_F)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCode(EVENT_CHAINING) e3:SetCode(EVENT_CHAINING)
e3:SetLabel(m) e3:SetCountLimit(1,m+EFFECT_COUNT_CODE_CHAIN)
e3:SetCondition(cm.condition) e3:SetCondition(cm.condition)
e3:SetTarget(cm.target2) e3:SetTarget(cm.target2)
e3:SetOperation(cm.activate) e3:SetOperation(cm.activate)
...@@ -71,7 +71,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,7 +71,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.condition(e,tp,eg,ep,ev,re,r,rp) function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and re:IsActiveType(TYPE_MONSTER) and not (re:GetHandler():GetOriginalCode()==m and re:GetLabel()==m) return ep~=tp and re:IsActiveType(TYPE_MONSTER)
end end
function cm.target2(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true 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