Commit 56c94b03 authored by mercury233's avatar mercury233

update new cards

parent 0de690c0
#created by ...
#main
100311024
100311034
100200188
100269001
100415024
......
--ドラグニティ・ドラフト
--Scripted by mallu11
function c100311024.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,100311024+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c100311024.target)
c:RegisterEffect(e1)
--immune
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_IMMUNE_EFFECT)
e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetTarget(c100311024.immtg)
e2:SetValue(c100311024.efilter)
c:RegisterEffect(e2)
end
function c100311024.thfilter(c)
return c:IsLevelBelow(4) and c:IsSetCard(0x29) and c:IsAbleToHand()
end
function c100311024.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c100311024.thfilter(chkc) end
if chk==0 then return true end
if Duel.IsExistingTarget(c100311024.thfilter,tp,LOCATION_GRAVE,0,1,nil)
and Duel.SelectYesNo(tp,aux.Stringid(100311024,0)) then
e:SetCategory(CATEGORY_TOHAND)
e:SetProperty(EFFECT_FLAG_CARD_TARGET)
e:SetOperation(c100311024.activate)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectTarget(tp,c100311024.thfilter,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
else
e:SetCategory(0)
e:SetProperty(0)
e:SetOperation(nil)
end
end
function c100311024.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
end
end
function c100311024.immtg(e,c)
return c:GetOriginalLevel()>=5 and c:IsSetCard(0x29) and Duel.GetAttacker()==c
end
function c100311024.efilter(e,te)
return te:GetOwnerPlayer()~=e:GetHandlerPlayer()
end
--ドラグニティ・ヴォイド
--Scripted by mallu11
function c100311034.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_NEGATE+CATEGORY_REMOVE+CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_CHAINING)
e1:SetCountLimit(1,100311034+EFFECT_COUNT_CODE_OATH)
e1:SetCondition(c100311034.condition)
e1:SetTarget(c100311034.target)
e1:SetOperation(c100311034.activate)
c:RegisterEffect(e1)
end
function c100311034.filter(c)
return c:IsFaceup() and c:IsSetCard(0x29) and c:IsType(TYPE_SYNCHRO)
end
function c100311034.condition(e,tp,eg,ep,ev,re,r,rp)
if ep==tp or not re:IsHasType(EFFECT_TYPE_ACTIVATE) then return end
return Duel.IsChainNegatable(ev) and Duel.IsExistingMatchingCard(c100311034.filter,tp,LOCATION_MZONE,0,1,nil)
end
function c100311034.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return aux.nbcon(tp,re) end
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
if re:GetHandler():IsRelateToEffect(re) then
Duel.SetOperationInfo(0,CATEGORY_REMOVE,eg,1,0,0)
end
end
function c100311034.atkfilter(c)
return c:IsFaceup() and c:IsSetCard(0x29)
end
function c100311034.cfilter(c)
return c100311034.atkfilter(c) and c:IsLevel(10)
end
function c100311034.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) and Duel.Remove(eg,POS_FACEUP,REASON_EFFECT)~=0 and eg:GetFirst():IsLocation(LOCATION_REMOVED) then
local ct=Duel.GetMatchingGroupCount(Card.IsFaceup,tp,LOCATION_REMOVED,LOCATION_REMOVED,nil)
if Duel.IsExistingMatchingCard(c100311034.cfilter,tp,LOCATION_MZONE,0,1,nil) and ct>0 and Duel.SelectYesNo(tp,aux.Stringid(100311034,0)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectMatchingCard(tp,c100311034.atkfilter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.HintSelection(g)
local tc=g:GetFirst()
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetValue(ct*100)
tc:RegisterEffect(e1)
end
end
end
......@@ -46,7 +46,7 @@ function c100415024.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectReleaseGroupEx(tp,c100415024.costfilter,1,1,e:GetHandler(),tp)
Duel.Release(g,REASON_COST)
end
end
function c100415024.splimit2(e,c,sump,sumtype,sumpos,targetp,se)
return c:IsSummonableCard()
end
......
......@@ -46,7 +46,7 @@ function c100415025.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectReleaseGroupEx(tp,c100415025.costfilter,1,1,e:GetHandler(),tp)
Duel.Release(g,REASON_COST)
end
end
function c100415025.splimit2(e,c,sump,sumtype,sumpos,targetp,se)
return c:IsSummonableCard()
end
......
......@@ -46,7 +46,7 @@ function c100415026.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectReleaseGroupEx(tp,c100415026.costfilter,1,1,e:GetHandler(),tp)
Duel.Release(g,REASON_COST)
end
end
function c100415026.splimit2(e,c,sump,sumtype,sumpos,targetp,se)
return c:IsSummonableCard()
end
......
......@@ -47,7 +47,7 @@ function c100415027.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectReleaseGroupEx(tp,c100415027.costfilter,1,1,e:GetHandler(),tp)
Duel.Release(g,REASON_COST)
end
end
function c100415027.splimit2(e,c,sump,sumtype,sumpos,targetp,se)
return c:IsSummonableCard()
end
......
......@@ -47,7 +47,7 @@ function c100415028.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectReleaseGroupEx(tp,c100415028.costfilter,1,1,e:GetHandler(),tp)
Duel.Release(g,REASON_COST)
end
end
function c100415028.splimit2(e,c,sump,sumtype,sumpos,targetp,se)
return c:IsSummonableCard()
end
......
......@@ -121,7 +121,7 @@ function c100415029.tgcost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(100,1)
end
Duel.Remove(sg,POS_FACEUP,REASON_COST)
end
end
function c100415029.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and c100415029.tgfilter(chkc) end
local check,ct=e:GetLabel()
......
......@@ -27,7 +27,7 @@ function c100415033.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e1:SetTarget(c100415033.splimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
end
function c100415033.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return c:IsSummonableCard()
end
......
......@@ -81,7 +81,7 @@ function c101102006.sumlimit(e,c)
return c:IsControler(e:GetHandlerPlayer())
end
function c101102006.thfilter(c)
return c:IsSetCard(0x24f) and c:IsType(TYPE_MONSTER) and not c:IsCode(101102006) and c:IsAbleToHand()
return c:IsSetCard(0x14d) and c:IsType(TYPE_MONSTER) and not c:IsCode(101102006) and c:IsAbleToHand()
end
function c101102006.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c101102006.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -16,13 +16,13 @@ function c101102010.initial_effect(c)
end
function c101102010.tfilter(c,tp)
local type1=c:GetType()&0x7
return c:IsSetCard(0x24e) and c:IsFaceup() and Duel.IsExistingMatchingCard(c101102010.tgfilter,tp,LOCATION_DECK,0,1,nil,tp,type1)
return c:IsSetCard(0x14e) and c:IsFaceup() and Duel.IsExistingMatchingCard(c101102010.tgfilter,tp,LOCATION_DECK,0,1,nil,type1)
end
function c101102010.tgfilter(c,type1)
return not c:IsType(type1) and c:IsSetCard(0x24e) and c:IsAbleToGrave()
return not c:IsType(type1) and c:IsSetCard(0x14e) and c:IsAbleToGrave()
end
function c101102010.thfilter(c,type1)
return not c:IsType(type1) and c:IsSetCard(0x24e) and not c:IsCode(101102010) and c:IsAbleToHand()
return not c:IsType(type1) and c:IsSetCard(0x14e) and not c:IsCode(101102010) and c:IsAbleToHand()
end
function c101102010.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and c101102010.tfilter(chkc,tp) end
......
......@@ -16,13 +16,13 @@ function c101102011.initial_effect(c)
end
function c101102011.tfilter(c,tp)
local type1=c:GetType()&0x7
return c:IsSetCard(0x24e) and c:IsFaceup() and Duel.IsExistingMatchingCard(c101102011.tgfilter,tp,LOCATION_DECK,0,1,nil,tp,type1)
return c:IsSetCard(0x14e) and c:IsFaceup() and Duel.IsExistingMatchingCard(c101102011.tgfilter,tp,LOCATION_DECK,0,1,nil,type1)
end
function c101102011.tgfilter(c,type1)
return not c:IsType(type1) and c:IsSetCard(0x24e) and c:IsAbleToGrave()
return not c:IsType(type1) and c:IsSetCard(0x14e) and c:IsAbleToGrave()
end
function c101102011.spfilter(c,e,tp,code1)
return c:IsSetCard(0x24e) and not c:IsCode(code1) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
return c:IsSetCard(0x14e) and not c:IsCode(code1) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end
function c101102011.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and c101102011.tfilter(chkc,tp) end
......
......@@ -16,10 +16,10 @@ function c101102012.initial_effect(c)
end
function c101102012.tfilter(c,tp)
local type1=c:GetType()&0x7
return c:IsSetCard(0x24e) and c:IsFaceup() and Duel.IsExistingMatchingCard(c101102012.tgfilter,tp,LOCATION_DECK,0,1,nil,tp,type1)
return c:IsSetCard(0x14e) and c:IsFaceup() and Duel.IsExistingMatchingCard(c101102012.tgfilter,tp,LOCATION_DECK,0,1,nil,type1)
end
function c101102012.tgfilter(c,type1)
return not c:IsType(type1) and c:IsSetCard(0x24e) and c:IsAbleToGrave()
return not c:IsType(type1) and c:IsSetCard(0x14e) and c:IsAbleToGrave()
end
function c101102012.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and c101102012.tfilter(chkc,tp) end
......@@ -64,7 +64,7 @@ function c101102012.splimit(e,c)
return not (c:IsLevelAbove(3) or c:IsRankAbove(3))
end
function c101102012.thfilter(c)
return c:IsSetCard(0x24e) and c:IsType(TYPE_MONSTER) and not c:IsCode(101102012) and c:IsAbleToHand()
return c:IsSetCard(0x14e) and c:IsType(TYPE_MONSTER) and not c:IsCode(101102012) and c:IsAbleToHand()
end
function c101102012.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(aux.NecroValleyFilter(c101102012.thfilter),tp,LOCATION_GRAVE,0,1,nil)
......
......@@ -16,13 +16,13 @@ function c101102013.initial_effect(c)
end
function c101102013.tfilter(c,tp)
local type1=c:GetType()&0x7
return c:IsSetCard(0x24e) and c:IsFaceup() and Duel.IsExistingMatchingCard(c101102013.tgfilter,tp,LOCATION_DECK,0,1,nil,tp,type1)
return c:IsSetCard(0x14e) and c:IsFaceup() and Duel.IsExistingMatchingCard(c101102013.tgfilter,tp,LOCATION_DECK,0,1,nil,type1)
end
function c101102013.tgfilter(c,type1)
return not c:IsType(type1) and c:IsSetCard(0x24e) and c:IsAbleToGrave()
return not c:IsType(type1) and c:IsSetCard(0x14e) and c:IsAbleToGrave()
end
function c101102013.thfilter(c,type1)
return not c:IsType(type1) and c:IsSetCard(0x24e) and not c:IsCode(101102013) and c:IsAbleToGrave()
return not c:IsType(type1) and c:IsSetCard(0x14e) and not c:IsCode(101102013) and c:IsAbleToGrave()
end
function c101102013.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and c101102013.tfilter(chkc,tp) end
......
......@@ -28,10 +28,10 @@ function c101102014.initial_effect(c)
c:RegisterEffect(e2)
end
function c101102014.desfilter(c)
return c:IsFaceup() and c:IsSetCard(0x24d)
return c:IsFaceup() and c:IsSetCard(0x14f)
end
function c101102014.thfilter(c)
return c:IsSetCard(0x24d) and c:IsType(TYPE_SPELL) and c:IsAbleToHand()
return c:IsSetCard(0x14f) and c:IsType(TYPE_SPELL) and c:IsAbleToHand()
end
function c101102014.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c101102014.desfilter(chkc) end
......
......@@ -31,7 +31,7 @@ function c101102015.initial_effect(c)
c:RegisterEffect(e3)
end
function c101102015.spfilter(c,tp)
return c:IsReason(REASON_BATTLE+REASON_EFFECT) and c:IsPreviousSetCard(0x24d) and c:GetPreviousCodeOnField()~=101102015
return c:IsReason(REASON_BATTLE+REASON_EFFECT) and c:IsPreviousSetCard(0x14f) and c:GetPreviousCodeOnField()~=101102015
and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP)
end
function c101102015.spcon(e,tp,eg,ep,ev,re,r,rp)
......@@ -43,11 +43,11 @@ function c101102015.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c101102015.desfilter(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0x24d)
return c:IsFaceup() and c:IsSetCard(0x14f)
and Duel.IsExistingMatchingCard(c101102015.sffilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,c)
end
function c101102015.sffilter(c,e,tp,tc)
return c:IsSetCard(0x24d) and c:IsType(TYPE_FUSION)
return c:IsSetCard(0x14f) and c:IsType(TYPE_FUSION)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,tc,c)>0
end
function c101102015.spop(e,tp,eg,ep,ev,re,r,rp)
......@@ -70,7 +70,7 @@ function c101102015.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c101102015.thfilter(c)
return c:IsSetCard(0x24d) and c:IsType(TYPE_TRAP) and c:IsAbleToHand()
return c:IsSetCard(0x14f) and c:IsType(TYPE_TRAP) and c:IsAbleToHand()
end
function c101102015.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c101102015.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -70,7 +70,7 @@ function c101102031.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetFlagEffect(101102031)>0
end
function c101102031.thfilter(c,e,tp)
if not (c:IsSetCard(0x24f) and c:IsType(TYPE_MONSTER) or c:IsCode(68468459)) then return false end
if not (c:IsSetCard(0x14d) and c:IsType(TYPE_MONSTER) or c:IsCode(68468459)) then return false end
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false))
end
......
......@@ -4,7 +4,7 @@
function c101102032.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0x24d),2,true)
aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0x14f),2,true)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(101102032,0))
......@@ -50,11 +50,11 @@ function c101102032.operation(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e1)
end
function c101102032.ffilter(e,c)
return c:IsType(TYPE_FUSION) and c:IsSetCard(0x24d)
return c:IsType(TYPE_FUSION) and c:IsSetCard(0x14f)
end
function c101102032.fmfilter(c)
local mg=c:GetMaterial()
return c:IsType(TYPE_FUSION) and c:IsSetCard(0x24d) and c:IsFaceup() and mg and mg:IsExists(Card.IsType,1,nil,TYPE_EFFECT)
return c:IsType(TYPE_FUSION) and c:IsSetCard(0x14f) and c:IsFaceup() and mg and mg:IsExists(Card.IsType,1,nil,TYPE_EFFECT)
end
function c101102032.adcon(e)
local tp=e:GetHandlerPlayer()
......
......@@ -4,7 +4,7 @@
function c101102033.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0x24d),2,true)
aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0x14f),2,true)
--destroy replace
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
......@@ -30,11 +30,11 @@ function c101102033.initial_effect(c)
c:RegisterEffect(e2)
end
function c101102033.repfilter(c,tp)
return c:IsFaceup() and c:IsSetCard(0x24d) and c:IsType(TYPE_FUSION) and c:IsControler(tp) and c:IsLocation(LOCATION_MZONE)
return c:IsFaceup() and c:IsSetCard(0x14f) and c:IsType(TYPE_FUSION) and c:IsControler(tp) and c:IsLocation(LOCATION_MZONE)
and c:IsReason(REASON_EFFECT) and not c:IsReason(REASON_REPLACE)
end
function c101102033.desfilter(c,e,tp)
return c:IsFaceup() and c:IsControler(tp) and c:IsLocation(LOCATION_MZONE) and c:IsSetCard(0x24d)
return c:IsFaceup() and c:IsControler(tp) and c:IsLocation(LOCATION_MZONE) and c:IsSetCard(0x14f)
and c:IsDestructable(e) and not c:IsStatus(STATUS_DESTROY_CONFIRMED+STATUS_BATTLE_DESTROYED)
end
function c101102033.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
......@@ -60,7 +60,7 @@ function c101102033.repop(e,tp,eg,ep,ev,re,r,rp)
end
function c101102033.fmfilter(c)
local mg=c:GetMaterial()
return c:IsType(TYPE_FUSION) and c:IsSetCard(0x24d) and c:IsFaceup() and mg and mg:IsExists(Card.IsType,1,nil,TYPE_EFFECT)
return c:IsType(TYPE_FUSION) and c:IsSetCard(0x14f) and c:IsFaceup() and mg and mg:IsExists(Card.IsType,1,nil,TYPE_EFFECT)
end
function c101102033.discon(e,tp,eg,ep,ev,re,r,rp)
return (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2)
......
......@@ -4,7 +4,7 @@
function c101102034.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcCodeFun(c,101102014,aux.FilterBoolFunction(Card.IsFusionSetCard,0x24d),2,true,false)
aux.AddFusionProcCodeFun(c,101102014,aux.FilterBoolFunction(Card.IsFusionSetCard,0x14f),2,true,false)
--actlimit
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......
......@@ -46,7 +46,7 @@ function c101102038.desop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c101102038.eqfilter(c)
return c:IsFaceup() and c:IsRace(RACE_WARRIOR)
return c:IsFaceup() and c:IsRace(RACE_WARRIOR)
end
function c101102038.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
......
......@@ -58,7 +58,7 @@ function c101102043.spcon(e,tp,eg,ep,ev,re,r,rp)
and (c:IsReason(REASON_EFFECT) and rp==1-tp or c:IsReason(REASON_BATTLE) and Duel.GetAttacker():IsControler(1-tp))
end
function c101102043.spfilter(c,e,tp)
return c:IsSetCard(0x24e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsSetCard(0x14e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c101102043.fselect(g)
return g:GetClassCount(Card.GetRace)==1
......
......@@ -17,7 +17,7 @@ function c101102049.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetCode(101102049)
e2:SetCode(25725326)
e2:SetRange(LOCATION_MZONE+LOCATION_GRAVE)
e2:SetCountLimit(1,101102049)
e2:SetCondition(c101102049.repcon)
......
......@@ -36,10 +36,11 @@ end
function c101102050.cttg(e,tp,eg,ep,ev,re,r,rp,chk)
local g=e:GetHandler():GetLinkedGroup()
if chk==0 then return #g==2 and g:IsExists(c101102050.ctfilter,1,nil,tp) and g:IsExists(c101102050.ctfilter,1,nil,1-tp) end
Duel.SetTargetCard(g)
Duel.SetOperationInfo(0,CATEGORY_CONTROL,g,2,0,0)
end
function c101102050.ctop(e,tp,eg,ep,ev,re,r,rp)
local g=e:GetHandler():GetLinkedGroup()
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
local a=g:GetFirst()
local b=g:GetNext()
if a and b then
......
......@@ -45,7 +45,7 @@ function c101102052.cfilter(c,tp)
and Duel.IsExistingMatchingCard(c101102052.srfilter,tp,LOCATION_DECK,0,1,nil,c:GetOriginalRace())
end
function c101102052.srfilter(c,race)
return c:IsSetCard(0x24f) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() and c:GetOriginalRace()~=race
return c:IsSetCard(0x14d) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() and c:GetOriginalRace()~=race
end
function c101102052.srcost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(100)
......
......@@ -14,13 +14,13 @@ function c101102055.initial_effect(c)
c:RegisterEffect(e1)
end
function c101102055.tffilter(c,tp)
return c:IsSetCard(0x124e) and not c:IsType(TYPE_FIELD+TYPE_MONSTER) and not c:IsForbidden() and c:CheckUniqueOnField(tp)
return c:IsSetCard(0x114e) and not c:IsType(TYPE_FIELD+TYPE_MONSTER) and not c:IsForbidden() and c:CheckUniqueOnField(tp)
end
function c101102055.gtfilter(c)
return c:IsSetCard(0x124e) and c:IsFaceup()
return c:IsSetCard(0x114e) and c:IsFaceup()
end
function c101102055.spfilter(c,e,tp)
return c:IsSetCard(0x24e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
return c:IsSetCard(0x14e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
end
function c101102055.exfilter1(c)
return c:IsFacedown() and c:IsType(TYPE_XYZ+TYPE_SYNCHRO+TYPE_FUSION)
......@@ -54,7 +54,7 @@ function c101102055.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x24e))
e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x14e))
e1:SetValue(200)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
......
......@@ -32,7 +32,7 @@ function c101102056.initial_effect(c)
c:RegisterEffect(e3)
end
function c101102056.cfilter(c)
return c:IsSetCard(0x24e) and c:IsAbleToRemoveAsCost()
return c:IsSetCard(0x14e) and c:IsAbleToRemoveAsCost()
end
function c101102056.discost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c101102056.cfilter,tp,LOCATION_GRAVE,0,1,nil) end
......@@ -65,7 +65,7 @@ function c101102056.disop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c101102056.thfilter(c)
return c:IsSetCard(0x24e) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
return c:IsSetCard(0x14e) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c101102056.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c101102056.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -16,13 +16,13 @@ function c101102057.filter1(c,e)
return not c:IsImmuneToEffect(e)
end
function c101102057.filter2(c,e,tp,m,f,chkf)
return c:IsType(TYPE_FUSION) and c:IsSetCard(0x24d) and (not f or f(c))
return c:IsType(TYPE_FUSION) and c:IsSetCard(0x14f) and (not f or f(c))
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and c:CheckFusionMaterial(m,nil,chkf)
end
function c101102057.target(e,tp,eg,ep,ev,re,r,rp,chk)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,e:GetHandler(),REASON_EFFECT) and ft>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,101102157,0x24d,0x4011,0,0,2,RACE_WARRIOR,ATTRIBUTE_LIGHT) end
and Duel.IsPlayerCanSpecialSummonMonster(tp,101102157,0x14f,0x4011,0,0,2,RACE_WARRIOR,ATTRIBUTE_LIGHT) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,ft,0,0)
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,ft,0,0)
Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,0,tp,1)
......@@ -33,7 +33,7 @@ function c101102057.activate(e,tp,eg,ep,ev,re,r,rp)
local count=0
if Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_EFFECT+REASON_DISCARD,nil,REASON_EFFECT)~=0 then
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if ft>0 and Duel.IsPlayerCanSpecialSummonMonster(tp,101102157,0x24d,0x4011,0,0,2,RACE_WARRIOR,ATTRIBUTE_LIGHT) then
if ft>0 and Duel.IsPlayerCanSpecialSummonMonster(tp,101102157,0x14f,0x4011,0,0,2,RACE_WARRIOR,ATTRIBUTE_LIGHT) then
if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end
for i=1,ft do
local token=Duel.CreateToken(tp,101102157)
......
......@@ -24,7 +24,7 @@ function c101102058.initial_effect(c)
c:RegisterEffect(e2)
end
function c101102058.thfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x24d) and c:IsAbleToHand()
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x14f) and c:IsAbleToHand()
end
function c101102058.activate(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
......@@ -37,7 +37,7 @@ function c101102058.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function c101102058.cfilter(c)
return c:IsFaceup() and c:IsType(TYPE_EFFECT) and c:IsSetCard(0x24d)
return c:IsFaceup() and c:IsType(TYPE_EFFECT) and c:IsSetCard(0x14f)
end
function c101102058.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c101102058.cfilter,tp,LOCATION_MZONE,0,1,nil)
......@@ -45,13 +45,13 @@ end
function c101102058.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c101102058.spfilter(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,101102157,0x24d,0x4011,0,0,2,RACE_WARRIOR,ATTRIBUTE_LIGHT) end
and Duel.IsPlayerCanSpecialSummonMonster(tp,101102157,0x14f,0x4011,0,0,2,RACE_WARRIOR,ATTRIBUTE_LIGHT) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
end
function c101102058.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,101102157,0x24d,0x4011,0,0,2,RACE_WARRIOR,ATTRIBUTE_LIGHT) then
and Duel.IsPlayerCanSpecialSummonMonster(tp,101102157,0x14f,0x4011,0,0,2,RACE_WARRIOR,ATTRIBUTE_LIGHT) then
local token=Duel.CreateToken(tp,101102158)
Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP)
end
......
......@@ -15,10 +15,10 @@ function c101102059.initial_effect(c)
c:RegisterEffect(e1)
end
function c101102059.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x24d)
return c:IsFaceup() and c:IsSetCard(0x14f)
end
function c101102059.ffilter(c,tp)
return c:IsPreviousSetCard(0x24d) and c:GetPreviousControler()==tp and c:GetPreviousTypeOnField()&TYPE_FUSION~=0
return c:IsPreviousSetCard(0x14f) and c:GetPreviousControler()==tp and c:GetPreviousTypeOnField()&TYPE_FUSION~=0
and c:IsPreviousPosition(POS_FACEUP)
end
function c101102059.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
--ジャック・イン・ザ・ハンド
--not fully implemented
--Scripted by mallu11
function c101102067.initial_effect(c)
--Activate
......@@ -12,16 +12,16 @@ function c101102067.initial_effect(c)
e1:SetOperation(c101102067.activate)
c:RegisterEffect(e1)
end
function c101102067.thfilter(c)
return c:IsLevel(1) and c:IsAbleToHand()
function c101102067.thfilter(c,tp)
return c:IsLevel(1) and c:IsAbleToHand() and c:IsAbleToHand(1-tp)
end
function c101102067.target(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(c101102067.thfilter,tp,LOCATION_DECK,0,nil)
local g=Duel.GetMatchingGroup(c101102067.thfilter,tp,LOCATION_DECK,0,nil,tp)
if chk==0 then return g:GetClassCount(Card.GetCode)>=3 end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,PLAYER_ALL,LOCATION_DECK)
end
function c101102067.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c101102067.thfilter,tp,LOCATION_DECK,0,nil)
local g=Duel.GetMatchingGroup(c101102067.thfilter,tp,LOCATION_DECK,0,nil,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local sg=g:SelectSubGroup(tp,aux.dncheck,false,3,3)
if sg then
......
......@@ -20,10 +20,10 @@ function c101102070.fselect(g,tp)
return Duel.IsExistingMatchingCard(c101102070.lkfilter,tp,LOCATION_EXTRA,0,1,nil,g)
end
function c101102070.lkfilter(c,g)
return c:IsSetCard(0x24f) and c:IsLinkSummonable(g,nil,g:GetCount(),g:GetCount())
return c:IsSetCard(0x14d) and c:IsLinkSummonable(g,nil,g:GetCount(),g:GetCount())
end
function c101102070.chkfilter(c,tp)
return c:IsType(TYPE_LINK) and c:IsSetCard(0x24f) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
return c:IsType(TYPE_LINK) and c:IsSetCard(0x14d) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
end
function c101102070.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
......
......@@ -36,7 +36,7 @@ function c101102072.initial_effect(c)
c:RegisterEffect(e3)
end
function c101102072.tdfilter(c)
return c:IsSetCard(0x24e) and c:IsAbleToDeck() and c:IsFaceup()
return c:IsSetCard(0x14e) and c:IsAbleToDeck() and c:IsFaceup()
end
function c101102072.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local g=Duel.GetMatchingGroup(c101102072.tdfilter,tp,LOCATION_REMOVED,0,nil)
......@@ -64,7 +64,7 @@ function c101102072.lvcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp and (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2)
end
function c101102072.lvfilter(c)
return c:IsSetCard(0x24e) and c:IsType(TYPE_MONSTER) and c:IsFaceup() and (c:GetLevel()>0 or c:GetRank()>0)
return c:IsSetCard(0x14e) and c:IsType(TYPE_MONSTER) and c:IsFaceup() and (c:GetLevel()>0 or c:GetRank()>0)
end
function c101102072.lvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and c101102072.lvfilter(chkc) end
......
......@@ -14,7 +14,7 @@ function c101102073.initial_effect(c)
c:RegisterEffect(e1)
end
function c101102073.filter(c,e,tp)
return c:IsSetCard(0x24d) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsSetCard(0x14f) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c101102073.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c101102073.filter(chkc,e,tp) end
......@@ -32,7 +32,7 @@ function c101102073.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
if Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)~=0 and tc:GetOriginalLevel()<=4 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,101102157,0x24d,0x4011,0,0,2,RACE_WARRIOR,ATTRIBUTE_LIGHT) and Duel.SelectYesNo(tp,aux.Stringid(101102073,0)) then
and Duel.IsPlayerCanSpecialSummonMonster(tp,101102157,0x14f,0x4011,0,0,2,RACE_WARRIOR,ATTRIBUTE_LIGHT) and Duel.SelectYesNo(tp,aux.Stringid(101102073,0)) then
Duel.BreakEffect()
local token=Duel.CreateToken(tp,101102173)
Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP)
......
......@@ -22,7 +22,7 @@ function c101102074.cost(e,tp,eg,ep,ev,re,r,rp,chk)
return true
end
function c101102074.filter(c)
return c:IsSetCard(0x24d) and not c:IsCode(101102074) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:CheckActivateEffect(false,true,false)~=nil
return c:IsSetCard(0x14f) and not c:IsCode(101102074) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:CheckActivateEffect(false,true,false)~=nil
end
function c101102074.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then
......
......@@ -29,7 +29,7 @@ function c101102077.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c101102077.filter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,nil)
local tc=g:GetFirst()
if tc then
if tc:IsSummonable(true,nil) and (not tc:IsMSetable(true,nil)
if tc:IsSummonable(true,nil) and (not tc:IsMSetable(true,nil)
or Duel.SelectPosition(tp,tc,POS_FACEUP_ATTACK+POS_FACEDOWN_DEFENSE)==POS_FACEUP_ATTACK) then
Duel.Summon(tp,tc,true,nil)
else Duel.MSet(tp,tc,true,nil) end
......
......@@ -31,18 +31,17 @@ function c101102079.activate(e,tp,eg,ep,ev,re,r,rp)
local sg2=g2:RandomSelect(tp,#og1)
if Duel.Remove(sg2,POS_FACEUP,REASON_EFFECT+REASON_TEMPORARY)~=0 and sg2:IsExists(Card.IsLocation,1,nil,LOCATION_REMOVED) then
local c=e:GetHandler()
local fid=c:GetFieldID()
local og2=Duel.GetOperatedGroup():Filter(Card.IsLocation,nil,LOCATION_REMOVED)
local tc=og2:GetFirst()
while tc do
tc:RegisterFlagEffect(101102079,RESET_EVENT+RESETS_STANDARD,0,1,fid)
tc:RegisterFlagEffect(101102079,RESET_EVENT+RESETS_STANDARD,0,1)
tc=og2:GetNext()
end
og2:KeepAlive()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetLabel(fid)
e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetLabelObject(og2)
e1:SetCountLimit(1)
e1:SetCondition(c101102079.retcon)
......@@ -52,19 +51,15 @@ function c101102079.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
end
function c101102079.retfilter(c,fid)
return c:GetFlagEffectLabel(101102079)==fid
function c101102079.retfilter(c)
return c:GetFlagEffect(101102079)~=0
end
function c101102079.retcon(e,tp,eg,ep,ev,re,r,rp)
local g=e:GetLabelObject()
if not g:IsExists(c101102079.retfilter,1,nil,e:GetLabel()) then
g:DeleteGroup()
e:Reset()
return false
else return true end
return e:GetLabelObject():IsExists(c101102079.retfilter,1,nil)
end
function c101102079.retop(e,tp,eg,ep,ev,re,r,rp)
local g=e:GetLabelObject()
local tg=g:Filter(c101102079.retfilter,nil,e:GetLabel())
Duel.SendtoDeck(tg,nil,2,REASON_EFFECT)
g:DeleteGroup()
end
......@@ -46,7 +46,9 @@ function c101102080.activate(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end
local p=c:GetControler()
local b1=Duel.GetLP(p)~=1000
local b2=Duel.GetLP(1-p)<8000
local ea=Duel.IsPlayerAffectedByEffect(1-p,EFFECT_REVERSE_DAMAGE)
local eb=Duel.IsPlayerAffectedByEffect(1-p,EFFECT_REVERSE_RECOVER)
local b2=Duel.GetLP(1-p)<8000 and (ea or not eb)
local b3=true
local off=0
local ops={}
......
......@@ -47,7 +47,7 @@ function c17382973.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c17382973.excostfilter(c,tp)
return (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsAbleToRemoveAsCost() and c:IsHasEffect(101102049,tp)
return (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsAbleToRemoveAsCost() and c:IsHasEffect(25725326,tp)
end
function c17382973.costfilter(c,tp,g)
local tg=g:Clone()
......@@ -71,7 +71,7 @@ function c17382973.thcost2(e,tp,eg,ep,ev,re,r,rp,chk)
else
tc=cg:GetFirst()
end
local te=tc:IsHasEffect(101102049,tp)
local te=tc:IsHasEffect(25725326,tp)
if te then
te:UseCountLimit(tp)
Duel.Remove(tc,POS_FACEUP,REASON_COST+REASON_REPLACE)
......
......@@ -49,7 +49,7 @@ function c18514525.atkop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c18514525.excostfilter(c,tp)
return (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsAbleToRemoveAsCost() and c:IsHasEffect(101102049,tp)
return (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsAbleToRemoveAsCost() and c:IsHasEffect(25725326,tp)
end
function c18514525.costfilter(c,tp,g)
local tg=g:Clone()
......@@ -73,7 +73,7 @@ function c18514525.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
else
tc=cg:GetFirst()
end
local te=tc:IsHasEffect(101102049,tp)
local te=tc:IsHasEffect(25725326,tp)
if te then
te:UseCountLimit(tp)
Duel.Remove(tc,POS_FACEUP,REASON_COST+REASON_REPLACE)
......
......@@ -35,7 +35,7 @@ function c43886072.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==1-tp
end
function c43886072.excostfilter(c,tp)
return (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsAbleToRemoveAsCost() and c:IsHasEffect(101102049,tp)
return (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsAbleToRemoveAsCost() and c:IsHasEffect(25725326,tp)
end
function c43886072.costfilter(c,tp,g)
local tg=g:Clone()
......@@ -59,7 +59,7 @@ function c43886072.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
else
tc=cg:GetFirst()
end
local te=tc:IsHasEffect(101102049,tp)
local te=tc:IsHasEffect(25725326,tp)
if te then
te:UseCountLimit(tp)
Duel.Remove(tc,POS_FACEUP,REASON_COST+REASON_REPLACE)
......
......@@ -37,7 +37,7 @@ function c44509529.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp
end
function c44509529.excostfilter(c,tp)
return (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsAbleToRemoveAsCost() and c:IsHasEffect(101102049,tp)
return (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsAbleToRemoveAsCost() and c:IsHasEffect(25725326,tp)
end
function c44509529.costfilter(c,tp,g)
local tg=g:Clone()
......@@ -61,7 +61,7 @@ function c44509529.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
else
tc=cg:GetFirst()
end
local te=tc:IsHasEffect(101102049,tp)
local te=tc:IsHasEffect(25725326,tp)
if te then
te:UseCountLimit(tp)
Duel.Remove(tc,POS_FACEUP,REASON_COST+REASON_REPLACE)
......
......@@ -36,7 +36,7 @@ function c70875686.initial_effect(c)
c:RegisterEffect(e2)
end
function c70875686.excostfilter(c,tp)
return (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsAbleToRemoveAsCost() and c:IsHasEffect(101102049,tp)
return (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsAbleToRemoveAsCost() and c:IsHasEffect(25725326,tp)
end
function c70875686.descost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(c70875686.excostfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil,tp)
......@@ -49,7 +49,7 @@ function c70875686.descost(e,tp,eg,ep,ev,re,r,rp,chk)
else
tc=g:GetFirst()
end
local te=tc:IsHasEffect(101102049,tp)
local te=tc:IsHasEffect(25725326,tp)
if te then
te:UseCountLimit(tp)
Duel.Remove(tc,POS_FACEUP,REASON_COST+REASON_REPLACE)
......
......@@ -36,7 +36,7 @@ function c81997228.initial_effect(c)
c:RegisterEffect(e2)
end
function c81997228.excostfilter(c,tp)
return (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsAbleToRemoveAsCost() and c:IsHasEffect(101102049,tp)
return (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) and c:IsAbleToRemoveAsCost() and c:IsHasEffect(25725326,tp)
end
function c81997228.descost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(c81997228.excostfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil,tp)
......@@ -49,7 +49,7 @@ function c81997228.descost(e,tp,eg,ep,ev,re,r,rp,chk)
else
tc=g:GetFirst()
end
local te=tc:IsHasEffect(101102049,tp)
local te=tc:IsHasEffect(25725326,tp)
if te then
te:UseCountLimit(tp)
Duel.Remove(tc,POS_FACEUP,REASON_COST+REASON_REPLACE)
......
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