Commit bc92777f authored by StormWulf's avatar StormWulf

Revision

parent 83c2fca2
--アークブレイブドラゴン
--Arc Brave Dragon
--Script by mercury233
function c33282498.initial_effect(c)
--remove
local e1=Effect.CreateEffect(c)
......
--巨竜の守護騎士
--Guardian of Felgrand
--Script by mercury233
function c33460840.initial_effect(c)
--equip
local e1=Effect.CreateEffect(c)
......@@ -15,15 +13,14 @@ function c33460840.initial_effect(c)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e2)
--spsummon
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(33460840,0))
e4:SetCategory(CATEGORY_SPECIAL_SUMMON)
e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetRange(LOCATION_MZONE)
e4:SetCost(c33460840.spcost)
e4:SetTarget(c33460840.sptg)
e4:SetOperation(c33460840.spop)
c:RegisterEffect(e4)
local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE)
e3:SetCost(c33460840.spcost)
e3:SetTarget(c33460840.sptg)
e3:SetOperation(c33460840.spop)
c:RegisterEffect(e3)
end
function c33460840.filter(c,ec)
return c:IsRace(RACE_DRAGON) and (c:GetLevel()==7 or c:GetLevel()==8)
......@@ -36,7 +33,7 @@ end
function c33460840.eqop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 or c:IsFacedown() or not c:IsRelateToEffect(e) then return end
Duel.Hint(HINT_SELECTMSG,tp,518)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
local g=Duel.SelectMatchingCard(tp,c33460840.filter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,c)
local tc=g:GetFirst()
if not Duel.Equip(tp,tc,c,false) then return end
......@@ -100,4 +97,4 @@ function c33460840.spop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end
end
\ No newline at end of file
end
--巨神竜フェルグラント
--Felgrand, the Great Divine Dragon
function c60681103.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_REMOVE)
......
--巨竜の聖騎士
--Paladin of Felgrand
function c6075801.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetTarget(c6075801.eqtg)
e1:SetOperation(c6075801.eqop)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_EQUIP)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
local e2=e1:Clone()
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetTarget(c6075801.eqtg)
e2:SetOperation(c6075801.eqop)
c:RegisterEffect(e2)
--immune
local e3=Effect.CreateEffect(c)
......@@ -23,11 +17,10 @@ function c6075801.initial_effect(c)
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e3:SetRange(LOCATION_MZONE)
e3:SetCode(EFFECT_IMMUNE_EFFECT)
e3:SetCondition(c6075801.eqcon1)
e3:SetCondition(c6075801.eqcon)
e3:SetValue(c6075801.efilter)
c:RegisterEffect(e3)
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(98446407,0))
e4:SetCategory(CATEGORY_SPECIAL_SUMMON)
e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetRange(LOCATION_MZONE)
......@@ -47,7 +40,7 @@ end
function c6075801.eqop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 or c:IsFacedown() or not c:IsRelateToEffect(e) then return end
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(6075801,0))
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
local g=Duel.SelectMatchingCard(tp,c6075801.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,c)
local tc=g:GetFirst()
if c:IsFaceup() and c:IsRelateToEffect(e) then
......@@ -67,7 +60,7 @@ end
function c6075801.eqlimit(e,c)
return e:GetOwner()==c
end
function c6075801.eqcon1(e)
function c6075801.eqcon(e)
local eg=e:GetHandler():GetEquipGroup()
return eg:GetCount()>0
end
......
--復活の福音
--Gospel of Revival
--Scripted by Eerie Code
function c6853254.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
......@@ -39,7 +37,8 @@ function c6853254.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function c6853254.repfilter(c,tp)
return c:IsFaceup() and c:IsRace(RACE_DRAGON) and c:IsOnField() and c:IsControler(tp) and c:IsReason(REASON_EFFECT+REASON_BATTLE)
return c:IsFaceup() and c:IsRace(RACE_DRAGON) and c:IsLocation(LOCATION_MZONE)
and c:IsControler(tp) and c:IsReason(REASON_EFFECT+REASON_BATTLE)
end
function c6853254.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemove() and eg:IsExists(c6853254.repfilter,1,nil,tp) end
......@@ -50,4 +49,4 @@ function c6853254.repval(e,c)
end
function c6853254.repop(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT)
end
\ No newline at end of file
end
--巨神竜の遺跡
--Ruins of the Great Divine Dragon
function c69868555.initial_effect(c)
--Activate
--activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--disable
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_DESTROY)
e2:SetDescription(aux.Stringid(69868555,0))
e2:SetCategory(CATEGORY_DISABLE)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetRange(LOCATION_SZONE)
e2:SetCondition(c69868555.condition)
e2:SetTarget(c69868555.target)
e2:SetOperation(c69868555.operation)
e2:SetCondition(c69868555.discon)
e2:SetTarget(c69868555.distg)
e2:SetOperation(c69868555.disop)
c:RegisterEffect(e2)
--To hand
--token
local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_TOKEN)
e3:SetDescription(aux.Stringid(69868555,1))
e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetCountLimit(1)
e3:SetRange(LOCATION_SZONE)
......@@ -27,12 +30,13 @@ function c69868555.initial_effect(c)
c:RegisterEffect(e3)
--to hand
local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(69868555,2))
e4:SetCategory(CATEGORY_TOHAND)
e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetRange(LOCATION_GRAVE)
e4:SetCost(c69868555.cost)
e4:SetTarget(c69868555.tg)
e4:SetOperation(c69868555.op)
e4:SetCost(c69868555.thcost)
e4:SetTarget(c69868555.thtg)
e4:SetOperation(c69868555.thop)
c:RegisterEffect(e4)
end
function c69868555.cfilter(c)
......@@ -41,19 +45,19 @@ end
function c69868555.dfilter(c)
return c:IsFaceup() and c:IsRace(RACE_DRAGON) and (c:GetLevel()==7 or c:GetLevel()==8)
end
function c69868555.condition(e,tp,eg,ep,ev,re,r,rp)
function c69868555.discon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c69868555.cfilter,1,nil) and Duel.IsExistingMatchingCard(c69868555.dfilter,tp,LOCATION_MZONE,0,1,nil)
end
function c69868555.target(e,tp,eg,ep,ev,re,r,rp,chk)
function c69868555.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local g=eg:Filter(c69868555.cfilter,nil)
Duel.SetTargetCard(eg)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
Duel.SetTargetCard(g)
Duel.SetOperationInfo(0,CATEGORY_DISABLE,g,g:GetCount(),0,0)
end
function c69868555.filter(c,e)
return c:IsFaceup() and not c:IsPreviousLocation(LOCATION_GRAVE) and c:IsRelateToEffect(e)
end
function c69868555.operation(e,tp,eg,ep,ev,re,r,rp)
function c69868555.disop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local g=eg:Filter(c69868555.filter,nil,e)
if g:GetCount()>0 then
......@@ -80,14 +84,13 @@ function c69868555.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function c69868555.costfilter1(c)
function c69868555.tkcostfilter(c)
return c:IsAbleToGraveAsCost() and c:IsFaceup()
end
function c69868555.tkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c69868555.costfilter1,tp,LOCATION_ONFIELD,0,1,e:GetHandler()) end
if chk==0 then return Duel.IsExistingMatchingCard(c69868555.tkcostfilter,tp,LOCATION_ONFIELD,0,1,e:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c69868555.costfilter1,tp,LOCATION_ONFIELD,0,1,1,e:GetHandler())
local g=Duel.SelectMatchingCard(tp,c69868555.tkcostfilter,tp,LOCATION_ONFIELD,0,1,1,e:GetHandler())
Duel.SendtoGrave(g,REASON_COST)
end
function c69868555.tktg(e,tp,eg,ep,ev,re,r,rp,chk)
......@@ -97,26 +100,25 @@ function c69868555.tktg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end
function c69868555.tkop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
if not (e:GetHandler():IsRelateToEffect(e) and Duel.IsPlayerCanSpecialSummonMonster(tp,69868556,0,0x4011,0,0,1,RACE_DRAGON,ATTRIBUTE_LIGHT)) then return end
local token=Duel.CreateToken(tp,69868556)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 or not e:GetHandler():IsRelateToEffect(e) then return end
if not Duel.IsPlayerCanSpecialSummonMonster(tp,6024,0,0x4011,0,0,1,RACE_DRAGON,ATTRIBUTE_LIGHT) then return end
local token=Duel.CreateToken(tp,6024)
Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP)
end
function c69868555.costfilter(c)
function c69868555.thcostfilter(c)
return c:IsRace(RACE_DRAGON) and (c:GetLevel()==7 or c:GetLevel()==8)
end
function c69868555.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c69868555.costfilter,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,e:GetHandler()) end
function c69868555.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c69868555.thcostfilter,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,e:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c69868555.costfilter,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,1,e:GetHandler())
local g=Duel.SelectMatchingCard(tp,c69868555.thcostfilter,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,1,e:GetHandler())
Duel.SendtoGrave(g,REASON_COST)
end
function c69868555.tg(e,tp,eg,ep,ev,re,r,rp,chk)
function c69868555.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToHand() end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,e:GetHandler(),1,0,0)
end
function c69868555.op(e,tp,eg,ep,ev,re,r,rp)
function c69868555.thop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then
Duel.SendtoHand(e:GetHandler(),nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,e:GetHandler())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment