Commit 04f67caa authored by wyykak's avatar wyykak

fix 200221

Signed-off-by: wyykak's avatarwyykak <wyy_1414@126.com>
parent 15c0d86c
Pipeline #12661 passed with stage
in 49 seconds
......@@ -28,6 +28,7 @@ function c200221.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetCategory(CATEGORY_DESTROY)
e2:SetCode(EVENT_PHASE+PHASE_END)
e2:SetLabelObject(e0)
e2:SetReset(RESET_PHASE+PHASE_END,4)
e2:SetCountLimit(1)
e2:SetCondition(c200221.con2)
e2:SetTarget(c200221.tg2)
......@@ -45,7 +46,7 @@ function c200221.count(e,tp,eg,ep,ev,re,r,rp)
end
function c200221.con2(e,tp,eg,ep,ev,re,r,rp)
local e0=e:GetLabelObject()
return e0 and e0:GetHandler():GetTurnCounter() == 4
return e0 and e0:GetLabel() == 4
end
function c200221.filter(c)
return c:IsPosition(POS_FACEUP_ATTACK) and c:IsDestructable()
......
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