Skip to content

Commit 9dfd753

Browse files
committed
2 parents 5846508 + b998c98 commit 9dfd753

3 files changed

Lines changed: 20 additions & 21 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

unofficial/c511002399.lua

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1+
--被弾回避
12
--Evasion Under Fire
23
local s,id=GetID()
34
function s.initial_effect(c)
4-
--Activate
5+
--If a player(s) would take battle damage: That damage becomes 0.
56
local e1=Effect.CreateEffect(c)
67
e1:SetType(EFFECT_TYPE_ACTIVATE)
78
e1:SetCode(EVENT_PRE_DAMAGE_CALCULATE)
8-
e1:SetCondition(s.con)
9+
e1:SetCondition(function(_,tp) return Duel.GetBattleDamage(tp)>0 or Duel.GetBattleDamage(1-tp)>0 end)
910
e1:SetOperation(s.activate)
1011
c:RegisterEffect(e1)
1112
end
12-
function s.con(e,tp,eg,ep,ev,re,r,rp)
13-
return Duel.GetBattleDamage(tp)>0 or Duel.GetBattleDamage(1-tp)>0
14-
end
1513
function s.activate(e,tp,eg,ep,ev,re,r,rp)
1614
local dam=0
1715
if Duel.GetBattleDamage(tp)>0 then
@@ -25,7 +23,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
2523
e1:SetCode(EVENT_PRE_BATTLE_DAMAGE)
2624
e1:SetOperation(s.damop)
2725
e1:SetLabel(dam)
28-
e1:SetReset(RESET_PHASE+PHASE_DAMAGE)
26+
e1:SetReset(RESET_PHASE|PHASE_DAMAGE)
2927
Duel.RegisterEffect(e1,tp)
3028
end
3129
function s.damop(e,tp,eg,ep,ev,re,r,rp)
@@ -38,4 +36,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp)
3836
Duel.ChangeBattleDamage(tp,0)
3937
Duel.ChangeBattleDamage(1-tp,0)
4038
end
41-
end
39+
end

unofficial/c511010701.lua

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,21 @@
33
--added by ClaireStanfield
44
local s,id=GetID()
55
function s.initial_effect(c)
6-
--indestructable
6+
--Cannot be destroyed by Spell effects that do not target it
77
local e1=Effect.CreateEffect(c)
88
e1:SetType(EFFECT_TYPE_SINGLE)
99
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
10-
e1:SetRange(LOCATION_MZONE)
1110
e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
12-
e1:SetValue(s.ind1)
11+
e1:SetRange(LOCATION_MZONE)
12+
e1:SetValue(s.indval)
1313
c:RegisterEffect(e1)
14+
--Cannot be destroyed by battle
1415
local e2=Effect.CreateEffect(c)
1516
e2:SetType(EFFECT_TYPE_SINGLE)
1617
e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
17-
e2:SetValue(s.ind2)
18+
e2:SetValue(1)
1819
c:RegisterEffect(e2)
1920
end
20-
function s.ind1(e,re,rp,c)
21-
return not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) and re:IsActiveType(TYPE_SPELL+TYPE_TRAP)
21+
function s.indval(e,re,rp,c)
22+
return not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) and re:IsSpellEffect()
2223
end
23-
function s.ind2(e,c)
24-
return c:IsAttackBelow(1900)
25-
end

0 commit comments

Comments
 (0)