Skip to content

Fix TF3 Gods #1129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions unofficial/c110000011.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
--Obelisk the Tormentor (VG)
local s,id=GetID()
function s.initial_effect(c)
--summon with 3 tribute
--Must be Normal Summoned/Set by Tributing 3 monsters
local e1=aux.AddNormalSummonProcedure(c,true,false,3,3)
local e2=aux.AddNormalSetProcedure(c)
--cannot be target
local e2=aux.AddNormalSetProcedure(c,true,false,3,3)
--Neither player can target this card with card effects
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetRange(LOCATION_MZONE)
e3:SetValue(1)
c:RegisterEffect(e3)
--to grave
--Send this Special Summoned card to the Graveyard
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(id,0))
e4:SetCategory(CATEGORY_TOGRAVE)
Expand All @@ -25,7 +25,7 @@ function s.initial_effect(c)
e4:SetTarget(s.tgtg)
e4:SetOperation(s.tgop)
c:RegisterEffect(e4)
--destroy
--Destroy all monsters your opponent controls
local e5=Effect.CreateEffect(c)
e5:SetDescription(aux.Stringid(id,1))
e5:SetCategory(CATEGORY_DESTROY)
Expand Down
24 changes: 11 additions & 13 deletions unofficial/c511027028.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
--The Winged Dragon of Ra (TF3)
local s,id=GetID()
function s.initial_effect(c)
--summon with 3 tribute
--Must be Normal Summoned/Set by Tributing 3 monsters
local e1=aux.AddNormalSummonProcedure(c,true,false,3,3)
local e2=aux.AddNormalSetProcedure(c)
--cannot be target
local e2=aux.AddNormalSetProcedure(c,true,false,3,3)
--Neither player can target this card with card effects
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetRange(LOCATION_MZONE)
e3:SetValue(1)
c:RegisterEffect(e3)
--to grave
--Send this Special Summoned card to the Graveyard
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(id,0))
e4:SetCategory(CATEGORY_TOGRAVE)
Expand All @@ -25,36 +25,34 @@ function s.initial_effect(c)
e4:SetTarget(s.tgtg)
e4:SetOperation(s.tgop)
c:RegisterEffect(e4)
--tribute check
--This card's ATK/DEF become the combined original ATK/DEF of the Tributes
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_SINGLE)
e5:SetCode(EFFECT_MATERIAL_CHECK)
e5:SetValue(s.valcheck)
c:RegisterEffect(e5)
--give atk effect only when summon
local e6=Effect.CreateEffect(c)
e6:SetType(EFFECT_TYPE_SINGLE)
e6:SetCode(EFFECT_SUMMON_COST)
e6:SetOperation(s.facechk)
e6:SetLabelObject(e5)
c:RegisterEffect(e6)
--destroy
--Destroy 1 monster on the field, and if you do, banish it
local e7=Effect.CreateEffect(c)
e7:SetDescription(aux.Stringid(id,1))
e7:SetCategory(CATEGORY_DESTROY)
e7:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_CARD_TARGET)
e7:SetProperty(EFFECT_FLAG_CARD_TARGET)
e7:SetCountLimit(1,0,EFFECT_COUNT_CODE_SINGLE)
e7:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE)
e7:SetCode(EVENT_SPSUMMON_SUCCESS)
e7:SetCost(s.descost)
e7:SetTarget(s.destg)
e7:SetOperation(s.desop)
c:RegisterEffect(e7)
--pay atk/def
--This card gains ATK/DEF equal to the amount of LP paid
local e8=Effect.CreateEffect(c)
e8:SetDescription(aux.Stringid(id,2))
e8:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_DEFCHANGE)
e8:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e8:SetCountLimit(1,0,EFFECT_COUNT_CODE_SINGLE)
e8:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE)
e8:SetCode(EVENT_SPSUMMON_SUCCESS)
Expand Down Expand Up @@ -95,7 +93,7 @@ function s.valcheck(e,c)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetValue(atk)
e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE-RESET_TOFIELD)
e1:SetReset(RESET_EVENT|RESETS_STANDARD_DISABLE&~RESET_TOFIELD)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_SET_DEFENSE)
Expand All @@ -120,7 +118,7 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function s.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then
if tc:IsRelateToEffect(e) then
Duel.Destroy(tc,REASON_EFFECT,LOCATION_REMOVED)
end
end
Expand All @@ -139,7 +137,7 @@ function s.adop(e,tp,eg,ep,ev,re,r,rp)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(e:GetLabel())
e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE)
e1:SetReset(RESET_EVENT|RESETS_STANDARD_DISABLE)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_UPDATE_DEFENSE)
Expand Down
12 changes: 6 additions & 6 deletions unofficial/c511027029.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
--Slifer the Sky Dragon (TF3)
local s,id=GetID()
function s.initial_effect(c)
--summon with 3 tribute
--Must be Normal Summoned/Set by Tributing 3 monsters
local e1=aux.AddNormalSummonProcedure(c,true,false,3,3)
local e2=aux.AddNormalSetProcedure(c)
--cannot be target
local e2=aux.AddNormalSetProcedure(c,true,false,3,3)
--Neither player can target this card with card effects
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetRange(LOCATION_MZONE)
e3:SetValue(1)
c:RegisterEffect(e3)
--to grave
--Send this Special Summoned card to the Graveyard
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(id,0))
e4:SetCategory(CATEGORY_TOGRAVE)
Expand All @@ -25,7 +25,7 @@ function s.initial_effect(c)
e4:SetTarget(s.tgtg)
e4:SetOperation(s.tgop)
c:RegisterEffect(e4)
--atk/def
--This card's ATK/DEF become the number of cards in your hand x 1000
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_SINGLE)
e5:SetCode(EFFECT_SET_ATTACK)
Expand All @@ -36,7 +36,7 @@ function s.initial_effect(c)
local e6=e5:Clone()
e6:SetCode(EFFECT_SET_DEFENSE)
c:RegisterEffect(e6)
--destroy
--Destroy that monster your opponent Normal or Flip Summons with 2000 or less DEF
local e7=Effect.CreateEffect(c)
e7:SetDescription(aux.Stringid(id,1))
e7:SetCategory(CATEGORY_DESTROY)
Expand Down