Skip to content

Commit fa9ceb5

Browse files
authored
Update "Exhaust Note"
Implementable since it's the same as Borrel Reboot
1 parent fa92c10 commit fa9ceb5

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎unofficial/c150000088.lua‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
--Scripted by Larry126
44
local s,id=GetID()
55
function s.initial_effect(c)
6-
--Activate
6+
--Negate the activation of a Spell/Trap Card, and if you do, Set that card
77
local e1=Effect.CreateEffect(c)
8-
e1:SetCategory(CATEGORY_NEGATE)
8+
e1:SetDescription(aux.Stringid(id,0))
9+
e1:SetCategory(CATEGORY_NEGATE+CATEGORY_SET)
910
e1:SetType(EFFECT_TYPE_ACTIVATE)
1011
e1:SetCode(EVENT_CHAINING)
11-
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
1212
e1:SetCondition(s.condition)
1313
e1:SetTarget(s.target)
1414
e1:SetOperation(s.activate)
1515
c:RegisterEffect(e1)
1616
end
1717
function s.condition(e,tp,eg,ep,ev,re,r,rp)
18-
return re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_TRAP+TYPE_SPELL) and Duel.IsChainNegatable(ev)
18+
return re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsSpellTrapEffect() and Duel.IsChainNegatable(ev)
1919
end
2020
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
2121
if chk==0 then return true end
@@ -32,7 +32,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
3232
local e1=Effect.CreateEffect(e:GetHandler())
3333
e1:SetType(EFFECT_TYPE_SINGLE)
3434
e1:SetCode(EFFECT_CANNOT_TRIGGER)
35-
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
35+
e1:SetReset(RESETS_STANDARD_PHASE_END)
3636
rc:RegisterEffect(e1)
3737
end
38-
end
38+
end

0 commit comments

Comments
 (0)