From 764d9aad02c95d7d3ebdaab134aabddc3ba67694 Mon Sep 17 00:00:00 2001 From: ClaireStanfield Date: Mon, 18 Aug 2025 02:05:59 -0400 Subject: [PATCH 1/2] Fix Shadow Toon (Anime) --- unofficial/c511000549.lua | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/unofficial/c511000549.lua b/unofficial/c511000549.lua index 39e6410e22..20d0216564 100644 --- a/unofficial/c511000549.lua +++ b/unofficial/c511000549.lua @@ -1,11 +1,13 @@ ---Shadow Toon +--シャドー・トゥーン (Anime) +--Shadow Toon (Anime) local s,id=GetID() function s.initial_effect(c) - --Activate + --Inflict damage to your opponent equal to that monster's ATK local e1=Effect.CreateEffect(c) + e1:SetCategory(CATEGORY_DAMAGE) e1:SetType(EFFECT_TYPE_ACTIVATE) - e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FREE_CHAIN) + e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCondition(s.condition) e1:SetTarget(s.target) e1:SetOperation(s.activate) @@ -19,15 +21,15 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_ONFIELD,0,1,nil) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) - if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and chkc:IsFaceup() end - if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end - Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) - Duel.SelectTarget(tp,Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil) - Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,0) + if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and chkc:HasNonZeroAttack() end + if chk==0 then return Duel.IsExistingTarget(Card.HasNonZeroAttack,tp,0,LOCATION_MZONE,1,nil) end + Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) + local g=Duel.SelectTarget(tp,Card.HasNonZeroAttack,tp,0,LOCATION_MZONE,1,1,nil) + Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,g:GetFirst():GetAttack()) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() - if tc:IsFaceup() and tc:IsRelateToEffect(e) then + if tc:IsRelateToEffect(e) and tc:HasNonZeroAttack() then Duel.Damage(1-tp,tc:GetAttack(),REASON_EFFECT) end end \ No newline at end of file From 2551984cc5baaec1e93438c580cc8459ae0093ed Mon Sep 17 00:00:00 2001 From: ClaireStanfield Date: Mon, 18 Aug 2025 13:45:55 -0400 Subject: [PATCH 2/2] Add SetDescription --- unofficial/c511000549.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/unofficial/c511000549.lua b/unofficial/c511000549.lua index 20d0216564..9e51a86e47 100644 --- a/unofficial/c511000549.lua +++ b/unofficial/c511000549.lua @@ -4,6 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Inflict damage to your opponent equal to that monster's ATK local e1=Effect.CreateEffect(c) + e1:SetDescription(aux.Stringid(id,0)) e1:SetCategory(CATEGORY_DAMAGE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN)