From 14087b424eafabe3a260891472bb8bff9028f60e Mon Sep 17 00:00:00 2001 From: Yomi-Real <73974886+Yomi-Real@users.noreply.github.com> Date: Sat, 14 Sep 2024 02:23:35 -0400 Subject: [PATCH 1/2] Add files via upload --- unofficial/c511027151.lua | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 unofficial/c511027151.lua diff --git a/unofficial/c511027151.lua b/unofficial/c511027151.lua new file mode 100644 index 0000000000..686fddac37 --- /dev/null +++ b/unofficial/c511027151.lua @@ -0,0 +1,27 @@ +--ヒロイック・ギフト +--Heroic Gift (anime) +local s,id=GetID() +function s.initial_effect(c) + --Activate + local e1=Effect.CreateEffect(c) + e1:SetCategory(CATEGORY_DRAW) + e1:SetType(EFFECT_TYPE_ACTIVATE) + e1:SetCode(EVENT_FREE_CHAIN) + e1:SetCountLimit(1,id,EFFECT_COUNT_CODE_OATH) + e1:SetCondition(s.condition) + e1:SetTarget(s.target) + e1:SetOperation(s.activate) + c:RegisterEffect(e1) +end +function s.condition(e,tp,eg,ep,ev,re,r,rp) + return Duel.GetLP(1-tp)<=2000 +end +function s.target(e,tp,eg,ep,ev,re,r,rp,chk) + if chk==0 then return Duel.IsPlayerCanDraw(tp,2) end + Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,2) +end +function s.activate(e,tp,eg,ep,ev,re,r,rp) + if Duel.GetLP(1-tp)==4000 then return end + Duel.SetLP(1-tp,4000) + Duel.Draw(tp,2,REASON_EFFECT) +end \ No newline at end of file From 221cb2270fa79787574d87b6040dc4df6ff6852f Mon Sep 17 00:00:00 2001 From: Yomi-Real <73974886+Yomi-Real@users.noreply.github.com> Date: Sat, 14 Sep 2024 02:58:06 -0400 Subject: [PATCH 2/2] Add files via upload --- unofficial/c511027152.lua | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 unofficial/c511027152.lua diff --git a/unofficial/c511027152.lua b/unofficial/c511027152.lua new file mode 100644 index 0000000000..33c7bc75d9 --- /dev/null +++ b/unofficial/c511027152.lua @@ -0,0 +1,44 @@ +--ハンマーラッシュ・バウンサー +--Hammer Bounzer (Anime) +local s,id=GetID() +function s.initial_effect(c) + --special summon + local e1=Effect.CreateEffect(c) + e1:SetType(EFFECT_TYPE_FIELD) + e1:SetCode(EFFECT_SPSUMMON_PROC) + e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) + e1:SetRange(LOCATION_HAND) + e1:SetCondition(s.spcon) + c:RegisterEffect(e1) + --actlimit + local e2=Effect.CreateEffect(c) + e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) + e2:SetCode(EVENT_ATTACK_ANNOUNCE) + e2:SetCondition(s.atkcon) + e2:SetOperation(s.atkop) + c:RegisterEffect(e2) +end +function s.spcon(e,c) + if c==nil then return true end + return Duel.GetFieldGroupCount(c:GetControler(),LOCATION_ONFIELD,0)==0 + and Duel.GetFieldGroupCount(c:GetControler(),0,LOCATION_ONFIELD)>0 +end +function s.atkcon(e,tp,eg,ep,ev,re,r,rp) + return not Duel.IsExistingMatchingCard(Card.IsType,tp,LOCATION_ONFIELD,0,1,nil,TYPE_SPELL+TYPE_TRAP) +end +function s.atkop(e,tp,eg,ep,ev,re,r,rp) + local e1=Effect.CreateEffect(e:GetHandler()) + e1:SetType(EFFECT_TYPE_FIELD) + e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) + e1:SetCode(EFFECT_CANNOT_ACTIVATE) + e1:SetTargetRange(0,1) + e1:SetValue(s.aclimit) + e1:SetReset(RESET_PHASE+PHASE_DAMAGE) + Duel.RegisterEffect(e1,tp) +end +function s.aclimit(e,re,tp) + return re:IsHasType(EFFECT_TYPE_ACTIVATE) +end--Hammer Bounzer (Anime) +function c511027152.initial_effect(c) + +end