Commit 1877091a authored by GuGu's avatar GuGu

Update c24088.lua

parent 2a87e55d
Pipeline #33825 passed with stage
in 13 seconds
......@@ -15,11 +15,12 @@ function c24088.initial_effect(c)
--disable
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(24088,1))
e2:SetCategory(CATEGORY_DISABLE)
e2:SetCategory(CATEGORY_NEGATE)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_CHAINING)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,EFFECT_COUNT_CODE_CHAIN)
e2:SetCondition(c24088.discon)
e2:SetTarget(c24088.distg)
e2:SetOperation(c24088.disop)
......@@ -50,7 +51,6 @@ function c24088.discon(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED)
and re:IsActiveType(TYPE_MONSTER) and Duel.IsChainNegatable(ev)
and re:GetHandler():GetLevel()>0 and re:GetHandler():GetLevel()<=e:GetHandler():GetLevel()
and not e:GetHandler():IsStatus(STATUS_CHAINING)
end
function c24088.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsLevelAbove(3) 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