Commit 7c03c96b authored by TanakaKotoha's avatar TanakaKotoha

fix

parent 43dcac15
......@@ -26,7 +26,7 @@ function cm.initial_effect(c)
e3:SetCategory(CATEGORY_DEFCHANGE+CATEGORY_RECOVER+CATEGORY_DESTROY)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e3:SetCountLimit(1,EFFECT_COUNT_CODE_SINGLE)
e3:SetCondition(cm.ubcon)
e3:SetTarget(cm.ubtg)
......@@ -46,7 +46,7 @@ function cm.atkcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetLP(tp)>=6000
end
function cm.ubcon(e,tp,eg,ep,ev,re,r,rp)
return re and re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsCode(17035000)
return re and re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsCode(17035300)
end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return true
......
......@@ -59,7 +59,7 @@ function cm.sumsuc(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.ubcon(e,tp,eg,ep,ev,re,r,rp)
return re and re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsCode(17035000)
return re and re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsCode(17035300)
end
function cm.ubcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanRemoveCounter(tp,0x1,2,REASON_COST) end
......
......@@ -65,7 +65,7 @@ function cm.damop(e,tp,eg,ep,ev,re,r,rp)
Duel.SetLP(1-tp,Duel.GetLP(1-tp)-500)
end
function cm.ubcon(e,tp,eg,ep,ev,re,r,rp)
return re and re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsCode(17035000)
return re and re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsCode(17035300)
end
function cm.ubcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanRemoveCounter(tp,0x1,2,REASON_COST) 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