Skip to content

Commit bc9ac17

Browse files
committed
"Swordsoul Supreme Sovereign - Chengying" update
Updated its script to match the ruling that says that, if only a token is banished, its effect cannot be triggered
1 parent 87b5337 commit bc9ac17

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

official/c96633955.lua

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function s.initial_effect(c)
55
--Synchro Summon
66
c:EnableReviveLimit()
77
Synchro.AddProcedure(c,nil,1,1,Synchro.NonTuner(nil),1,99)
8-
--Increase ATK/DEF
8+
--Gains 100 ATK/DEF for each banished card
99
local e1=Effect.CreateEffect(c)
1010
e1:SetType(EFFECT_TYPE_SINGLE)
1111
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
@@ -16,7 +16,7 @@ function s.initial_effect(c)
1616
local e2=e1:Clone()
1717
e2:SetCode(EFFECT_UPDATE_DEFENSE)
1818
c:RegisterEffect(e2)
19-
--Decrease ATK/DEF
19+
--Monsters your opponent controls lose 100 ATK/DEF for each banished card
2020
local e3=Effect.CreateEffect(c)
2121
e3:SetType(EFFECT_TYPE_FIELD)
2222
e3:SetCode(EFFECT_UPDATE_ATTACK)
@@ -27,15 +27,15 @@ function s.initial_effect(c)
2727
local e4=e3:Clone()
2828
e4:SetCode(EFFECT_UPDATE_DEFENSE)
2929
c:RegisterEffect(e4)
30-
--Destroy replace
30+
--If this card would be destroyed by card effect, you can banish 1 card from your GY instead
3131
local e5=Effect.CreateEffect(c)
3232
e5:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
3333
e5:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
3434
e5:SetCode(EFFECT_DESTROY_REPLACE)
3535
e5:SetRange(LOCATION_MZONE)
3636
e5:SetTarget(s.desreptg)
3737
c:RegisterEffect(e5)
38-
--Banish
38+
--Banish 1 card each from both your opponent's field and GY
3939
local e6=Effect.CreateEffect(c)
4040
e6:SetDescription(aux.Stringid(id,0))
4141
e6:SetCategory(CATEGORY_REMOVE)
@@ -44,6 +44,7 @@ function s.initial_effect(c)
4444
e6:SetCode(EVENT_REMOVE)
4545
e6:SetRange(LOCATION_MZONE)
4646
e6:SetCountLimit(1,id)
47+
e6:SetCondition(s.remcon)
4748
e6:SetTarget(s.remtg)
4849
e6:SetOperation(s.remop)
4950
c:RegisterEffect(e6)
@@ -68,6 +69,9 @@ function s.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
6869
return true
6970
else return false end
7071
end
72+
function s.remcon(e,tp,eg,ep,ev,re,r,rp)
73+
return eg:IsExists(function(c) return not c:IsType(TYPE_TOKEN) end,1,nil)
74+
end
7175
function s.remtg(e,tp,eg,ep,ev,re,r,rp,chk)
7276
if chk==0 then return not Duel.IsPlayerAffectedByEffect(e:GetHandlerPlayer(),CARD_SPIRIT_ELIMINATION)
7377
and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,1,nil)

0 commit comments

Comments
 (0)