Commit 10eaa113 authored by POLYMER's avatar POLYMER

fix

parent 4dcdca1e
......@@ -81,7 +81,7 @@ function c12835101.initial_effect(c)
end
end
function c12835101.con0(e)
return Duel.GetFlagEffect(tp,12835101+100)==0
return Duel.GetFlagEffect(e:GetHandlerPlayer(),12835101+100)==0
end
function c12835101.op0(e,tp,eg,ep,ev,re,r,rp)
for tp = 0,1 do
......
......@@ -28,7 +28,6 @@ function c12835102.initial_effect(c)
e5:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_EQUIP+CATEGORY_DECKDES)
e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e5:SetCode(EVENT_TO_HAND)
e5:SetCountLimit(1,12835102)
e5:SetProperty(EFFECT_FLAG_DELAY)
e5:SetCondition(c12835102.con5)
e5:SetTarget(c12835102.tg5)
......
......@@ -32,7 +32,7 @@ if not cm.lblsz then
Duel.Remove(rg,POS_FACEUP,REASON_EFFECT)
Duel.ResetFlagEffect(tp,m+10000000)
end
if Duel.GetFlagEffect(tp,m)==0 and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,m) and Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_DECK+LOCATION_GRAVE,0,nil,m):RandomSelect(tp,1):IsAbleToHand(tp) and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
if Duel.GetFlagEffect(tp,m)==0 and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,m) and Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_DECK+LOCATION_GRAVE,0,nil,m):RandomSelect(tp,1):GetFirst():IsAbleToHand(tp) and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
Duel.RegisterFlagEffect(tp,m,0,0,1)
local ag=Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_DECK+LOCATION_GRAVE,0,nil,m):Select(tp,1,1,nil)
Duel.SendtoHand(ag,nil,REASON_EFFECT)
......
......@@ -25,7 +25,8 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.ShuffleHand(tp)
end
function s.spfilter(c,e,tp)
return c:IsSetCard(0x106e) and c:IsType(TYPE_SPELL) and Duel.IsPlayerCanSpecialSummonMonster(tp,c:GetCode(),nil,TYPE_MONSTER+TYPE_EFFECT,0,0,1,RACE_SPELLCASTER,ATTRIBUTE_LIGHT) and c:IsCanBeSpecialSummoned(e,0,tp,true,true)
return c:IsSetCard(0x106e) and c:IsType(TYPE_SPELL) and Duel.IsPlayerCanSpecialSummonMonster(tp,c:GetCode(),nil,TYPE_MONSTER+TYPE_EFFECT,2800,0,1,RACE_SPELLCASTER,ATTRIBUTE_LIGHT)
--and c:IsCanBeSpecialSummoned(e,0,tp,true,true)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......@@ -39,7 +40,8 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if g:GetCount()>0 then
local tc=g:GetFirst()
local e1=Effect.CreateEffect(c)
tc:AddMonsterAttribute(TYPE_EFFECT,ATTRIBUTE_LIGHT,RACE_SPELLCASTER,1,2800,0)
--[[local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CHANGE_TYPE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
......@@ -65,7 +67,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local e6=e1:Clone()
e6:SetCode(EFFECT_CHANGE_LEVEL)
e6:SetValue(1)
tc:RegisterEffect(e6,true)
tc:RegisterEffect(e6,true)]]
if Duel.SpecialSummonStep(tc,0,tp,tp,true,false,POS_FACEUP) then
--Return to hand
local e7=Effect.CreateEffect(c)
......
......@@ -235,7 +235,8 @@ function s.PendOperation()
tc:RegisterFlagEffect(id+2,0,0,1,tc:GetOriginalType())
tc:SetCardData(CARDDATA_TYPE,TYPE_NORMAL+TYPE_MONSTER)
end
local e1=Effect.CreateEffect(tc)
tc:AddMonsterAttribute(TYPE_NORMAL,ATTRIBUTE_LIGHT,RACE_SPELLCASTER,7,0,0)
--[[local e1=Effect.CreateEffect(tc)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CHANGE_TYPE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
......@@ -261,7 +262,7 @@ function s.PendOperation()
local e6=e1:Clone()
e6:SetCode(EFFECT_CHANGE_LEVEL)
e6:SetValue(7)
tc:RegisterEffect(e6,true)
tc:RegisterEffect(e6,true)]]
--tc:SetStatus(STATUS_EFFECT_ENABLED,true)
--tc:SetStatus(STATUS_PROC_COMPLETE,true)
--tc:SetStatus(STATUS_SUMMONING,true)
......
......@@ -4,7 +4,7 @@ function c9911659.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(TIMING_END_PHASE)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,9911659)
e1:SetCost(c9911659.poscost)
......
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