Commit a3f42990 authored by Tachibana's avatar Tachibana

ybb

parent 0b003c8c
No preview for this file type
...@@ -24,29 +24,32 @@ function c92900027.initial_effect(c) ...@@ -24,29 +24,32 @@ function c92900027.initial_effect(c)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e3:SetValue(cm.eqlimit) e3:SetValue(cm.eqlimit)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--destroy indes --indes
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_EQUIP) e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e4:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e4:SetValue(cm.indes) e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e4:SetRange(LOCATION_MZONE)
e4:SetValue(cm.indval)
c:RegisterEffect(e4) c:RegisterEffect(e4)
local e5=e4:Clone() local e5=e4:Clone()
e5:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e5:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e5:SetValue(cm.indeval)
c:RegisterEffect(e5) c:RegisterEffect(e5)
--atk to 0 --atk to 0
local e1=Effect.CreateEffect(c) local e6=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0)) e6:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_CONTROL+CATEGORY_POSITION) e6:SetCategory(CATEGORY_CONTROL+CATEGORY_POSITION)
e1:SetType(EFFECT_TYPE_QUICK_O) e6:SetType(EFFECT_TYPE_QUICK_O)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e6:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetCode(EVENT_FREE_CHAIN) e6:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_SZONE) e6:SetRange(LOCATION_SZONE)
e1:SetCountLimit(1,m) e6:SetCountLimit(1,m)
e1:SetHintTiming(TIMING_DAMAGE_STEP) e6:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetCondition(cm.atkcon) e6:SetCondition(cm.atkcon)
e1:SetTarget(cm.atktg) e6:SetTarget(cm.atktg)
e1:SetOperation(cm.atkop) e6:SetOperation(cm.atkop)
c:RegisterEffect(e1) c:RegisterEffect(e6)
end end
function cm.eqlimit(e,c) function cm.eqlimit(e,c)
return c:IsSetCard(0x9a0) return c:IsSetCard(0x9a0)
...@@ -67,10 +70,12 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -67,10 +70,12 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Equip(tp,e:GetHandler(),tc) Duel.Equip(tp,e:GetHandler(),tc)
end end
end end
function cm.indes(e,c) function cm.indval(e,c)
return not c:IsType(TYPE_XYZ) return not c:IsType(TYPE_XYZ)
end end
function cm.indeval(e,re,rp)
return re:IsActiveType(TYPE_MONSTER) and not re:IsActiveType(TYPE_XYZ)
end
function cm.atkcon(e,tp,eg,ep,ev,re,r,rp) function cm.atkcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE return Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE
and aux.dscon() and aux.dscon()
......
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