Skip to content

Commit f38acd1

Browse files
authored
Update "Guivre (Manga)"
Script updates for Manga version of Guivre
1 parent 4950284 commit f38acd1

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

unofficial/c511002176.lua

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
--Guivre
1+
--ギーブル (Manga)
2+
--Guivre (Manga)
23
local s,id=GetID()
4+
local TOKEN_WYVERN=18905770
35
function s.initial_effect(c)
4-
--special summon
6+
--When this card destroys an opponent's monster by battle: Special Summon 1 "Wyvern Token" to your field.
57
local e1=Effect.CreateEffect(c)
68
e1:SetDescription(aux.Stringid(74440055,0))
79
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN)
@@ -12,15 +14,16 @@ function s.initial_effect(c)
1214
e1:SetOperation(s.operation)
1315
c:RegisterEffect(e1)
1416
end
17+
s.listed_names={TOKEN_WYVERN}
1518
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
1619
if chk==0 then return true end
1720
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,tp,0)
1821
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,0)
1922
end
2023
function s.operation(e,tp,eg,ep,ev,re,r,rp)
2124
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0
22-
and Duel.IsPlayerCanSpecialSummonMonster(tp,id+1,0,TYPES_TOKEN,0,0,1,RACE_DRAGON,0,POS_FACEUP,tp) then
23-
local token=Duel.CreateToken(tp,id+1)
25+
and Duel.IsPlayerCanSpecialSummonMonster(tp,TOKEN_WYVERN,0,TYPES_TOKEN,400,400,1,RACE_DRAGON,ATTRIBUTE_LIGHT) then
26+
local token=Duel.CreateToken(tp,TOKEN_WYVERN)
2427
Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP)
2528
end
26-
end
29+
end

0 commit comments

Comments
 (0)