Commit 134b07cb authored by TanakaKotoha's avatar TanakaKotoha

Black Square

parent 913234ad
......@@ -30,7 +30,6 @@ function c14801934.initial_effect(c)
e4:SetProperty(EFFECT_FLAG_NO_TURN_RESET)
e4:SetCountLimit(1)
e4:SetCondition(c14801934.negcon)
e4:SetTarget(c14801934.negtg)
e4:SetOperation(c14801934.negop)
c:RegisterEffect(e4)
--token
......@@ -66,15 +65,15 @@ function c14801934.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function c14801934.negcon(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)==LOCATION_SZONE
and re:IsActiveType(TYPE_SPELL) and Duel.IsChainDisablable(ev)
local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)
return rp==1-tp and bit.band(loc,LOCATION_SZONE)~=0
and re:IsActiveType(TYPE_SPELL) and Duel.IsChainDisablable(ev)
end
function c14801934.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(14801934,1))
end
function c14801934.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,14801934)
Duel.NegateEffect(ev)
function c14801934.negop(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateEffect(ev) then
e:GetHandler():RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(14801934,1))
Duel.Hint(HINT_CARD,0,14801934)
end
end
function c14801934.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -66,10 +66,10 @@ function c14801939.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function c14801939.rmcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local c=e:GetHandler():GetEquipTarget()
local bc=c:GetBattleTarget()
e:SetLabelObject(bc)
return bc and bc:IsStatus(STATUS_BATTLE_DESTROYED) and eg:GetFirst()==e:GetHandler():GetEquipTarget() and eg:GetFirst():IsStatus(STATUS_OPPO_BATTLE)
return bc and bc:IsStatus(STATUS_BATTLE_DESTROYED) and c:IsStatus(STATUS_OPPO_BATTLE)
end
function c14801939.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -19,7 +19,7 @@ function c14801941.initial_effect(c)
--Atk up
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_EQUIP)
e3:SetCode(EFFECT_UPDATE_ATTACK)
e3:SetCode(EFFECT_UPDATE_DEFENSE)
e3:SetValue(600)
c:RegisterEffect(e3)
--immune
......
......@@ -32,8 +32,8 @@ function c14801979.initial_effect(c)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1)
e3:SetCondition(c14801979.con)
e3:SetTarget(c14801979.target)
e3:SetOperation(c14801979.operation)
e3:SetTarget(c14801979.target2)
e3:SetOperation(c14801979.operation2)
c:RegisterEffect(e3)
end
function c14801979.lcheck(c)
......@@ -87,7 +87,7 @@ function c14801979.con(e,tp,eg,ep,ev,re,r,rp)
if ep==tp or c:IsStatus(STATUS_BATTLE_DESTROYED) then return false end
return re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and Duel.IsChainNegatable(ev) and e:GetHandler():GetEquipGroup():IsExists(Card.IsSetCard,1,nil,0x4809)
end
function c14801979.target(e,tp,eg,ep,ev,re,r,rp,chk)
function c14801979.target2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsLevelAbove(3) end
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
if re:GetHandler():IsDestructable() and re:GetHandler():IsRelateToEffect(re) then
......@@ -95,7 +95,7 @@ function c14801979.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
e:GetHandler():RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(14801979,2))
end
function c14801979.operation(e,tp,eg,ep,ev,re,r,rp)
function c14801979.operation2(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT)
end
......
......@@ -24,7 +24,7 @@ function c14801985.initial_effect(c)
end
function c14801985.hspcon(e,tp,eg,ep,ev,re,r,rp)
local at=Duel.GetAttacker()
return at:GetControler()~=tp and Duel.GetAttackTarget()==nil
return at:GetControler()~=tp
end
function c14801985.hsptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......
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