Skip to content

Commit 14e89a2

Browse files
committed
update "Primite Roar"
1 parent 8355cf3 commit 14e89a2

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

official/c92501449.lua

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
--scripted by Naim
44
local s,id=GetID()
55
function s.initial_effect(c)
6-
--Prevent battle destruction and Special Summon 1 Normal Monster
6+
--Pay 2000 LP, then declare 1 Normal Monster Card name; the declared Normal Monsters and "Primite" monsters you control cannot be destroyed by battle (until the end of your opponent's turn), then if you control no monsters, you can Special Summon 1 declared Normal Monster from your Deck in Defense Position
77
local e1=Effect.CreateEffect(c)
88
e1:SetDescription(aux.Stringid(id,0))
99
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
@@ -14,7 +14,7 @@ function s.initial_effect(c)
1414
e1:SetTarget(s.target)
1515
e1:SetOperation(s.activate)
1616
c:RegisterEffect(e1)
17-
--Banish 1 monster on the field
17+
--If your opponent Normal Summons a monster: You can banish this card from your GY, then target 1 Normal Monster you control or in your GY; banish 1 monster from the field with less ATK than that monster
1818
local e2=Effect.CreateEffect(c)
1919
e2:SetDescription(aux.Stringid(id,1))
2020
e2:SetCategory(CATEGORY_REMOVE)
@@ -31,19 +31,16 @@ end
3131
s.listed_series={SET_PRIMITE}
3232
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
3333
if chk==0 then return true end
34-
s.announce_filter={TYPE_NORMAL,OPCODE_ISTYPE}
35-
local code=Duel.AnnounceCard(tp,s.announce_filter)
36-
Duel.SetTargetParam(code)
37-
Duel.SetOperationInfo(0,CATEGORY_ANNOUNCE,nil,0,tp,ANNOUNCE_CARD_FILTER)
34+
Duel.AnnounceCard(tp,DF.IsType(TYPE_NORMAL))
3835
Duel.SetPossibleOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
3936
end
4037
function s.spfilter(c,e,tp,code)
4138
return c:IsType(TYPE_NORMAL) and c:IsCode(code) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
4239
end
4340
function s.activate(e,tp,eg,ep,ev,re,r,rp)
4441
local c=e:GetHandler()
45-
local code=Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM)
46-
--Your Normal Monsters with the declared name and "Primite" monsters cannot be destroyed by battle
42+
local code=e:GetChainData().announced_card
43+
--The declared Normal Monsters and "Primite" monsters you control cannot be destroyed by battle (until the end of your opponent's turn)
4744
local e1=Effect.CreateEffect(c)
4845
e1:SetType(EFFECT_TYPE_FIELD)
4946
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
@@ -86,4 +83,4 @@ function s.rmvop(e,tp,eg,ep,ev,re,r,rp)
8683
Duel.HintSelection(g)
8784
Duel.Remove(g,nil,REASON_EFFECT)
8885
end
89-
end
86+
end

0 commit comments

Comments
 (0)