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 000000000..686fddac3 --- /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 941a0e556ebe1965d4b21d54b4d3cc42254214ed Mon Sep 17 00:00:00 2001 From: Yomi-Real <73974886+Yomi-Real@users.noreply.github.com> Date: Sat, 14 Sep 2024 02:39:06 -0400 Subject: [PATCH 2/2] Add files via upload