Skip to content

Commit b228905

Browse files
authored
Update "Rough Exploder"
1 parent 88467d3 commit b228905

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

unofficial/c511002098.lua

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
--ラフ・ボンバー
12
--Rough Exploder
23
local s,id=GetID()
34
function s.initial_effect(c)
4-
--destroy
5+
--If you control an Attack Position "Fool Clown": You can banish this card from your Graveyard; inflict 500 damage to your opponent.
56
local e1=Effect.CreateEffect(c)
67
e1:SetDescription(aux.Stringid(69764158,0))
78
e1:SetCategory(CATEGORY_DAMAGE)
@@ -14,12 +15,12 @@ function s.initial_effect(c)
1415
e1:SetOperation(s.damop)
1516
c:RegisterEffect(e1)
1617
end
17-
s.listed_names={511009200}
18-
function s.cfilter(c)
19-
return c:IsFaceup() and c:IsCode(511009200)
18+
s.listed_names={511009200} --"Fool Clown"
19+
function s.damconfilter(c)
20+
return c:IsFaceup() and c:IsCode(511009200) and c:IsAttackPos()
2021
end
2122
function s.damcon(e,tp,eg,ep,ev,re,r,rp)
22-
return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
23+
return Duel.IsExistingMatchingCard(s.damconfilter,tp,LOCATION_MZONE,0,1,nil)
2324
end
2425
function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
2526
if chk==0 then return true end
@@ -30,4 +31,4 @@ end
3031
function s.damop(e,tp,eg,ep,ev,re,r,rp)
3132
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
3233
Duel.Damage(p,d,REASON_EFFECT)
33-
end
34+
end

0 commit comments

Comments
 (0)